casparser-isin


Namecasparser-isin JSON
Version 2023.9.3 PyPI version JSON
download
home_pagehttps://github.com/codereverser/casparser-isin
SummaryISIN database for casparser
upload_time2023-09-03 09:49:55
maintainer
docs_urlNone
authorSandeep Somasekharan
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CASParser-ISIN

[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![GitHub](https://img.shields.io/github/license/codereverser/casparser)](https://github.com/codereverser/casparser/blob/main/LICENSE)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/codereverser/casparser-isin/run-pytest.yml?branch=main)
[![codecov](https://codecov.io/gh/codereverser/casparser-isin/branch/main/graph/badge.svg?token=MQ8ZEVTG1B)](https://codecov.io/gh/codereverser/casparser-isin)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/casparser-isin)

ISIN Database for [casparser](https://github.com/codereverser/casparser).

## Installation
```bash
pip install -U casparser-isin
```

## Usage


```python
from casparser_isin import MFISINDb
with MFISINDb() as db:
    scheme_data = db.isin_lookup("Axis Long Term Equity Fund - Growth",  # scheme name
                                 "KFINTECH", # RTA
                                 "128TSDGG", # Scheme RTA code
                                 )
print(scheme_data)
```
```
SchemeData(name="axis long term equity fund - direct growth",
           isin="INF846K01EW2",
           amfi_code="120503",
           score=100.0)
```

The database also contains NAV values on 31-Jan-2018 for all funds, which can be used for
taxable LTCG computation for units purchased before the same date.

```
from casparser_isin import MFISINDb
with MFISINDb() as db:
    nav = db.nav_lookup("INF846K01EW2")
print(nav)
```
```
Decimal('44.8938')
```


## Notes

- casparser-isin is shipped with a local database which may get obsolete over time. The local
database can be updated via the cli tool

```shell
casparser-isin --update
```

- casparser-isin will try to use the file provided by `CASPARSER_ISIN_DB` environment variable; if present, and the file exists


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/codereverser/casparser-isin",
    "name": "casparser-isin",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Sandeep Somasekharan",
    "author_email": "codereverser@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/50/36/1e43c138b2e78bf212e90ce57c4d4fdc6955e1626efebb380243f2b92370/casparser_isin-2023.9.3.tar.gz",
    "platform": null,
    "description": "# CASParser-ISIN\n\n[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![GitHub](https://img.shields.io/github/license/codereverser/casparser)](https://github.com/codereverser/casparser/blob/main/LICENSE)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/codereverser/casparser-isin/run-pytest.yml?branch=main)\n[![codecov](https://codecov.io/gh/codereverser/casparser-isin/branch/main/graph/badge.svg?token=MQ8ZEVTG1B)](https://codecov.io/gh/codereverser/casparser-isin)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/casparser-isin)\n\nISIN Database for [casparser](https://github.com/codereverser/casparser).\n\n## Installation\n```bash\npip install -U casparser-isin\n```\n\n## Usage\n\n\n```python\nfrom casparser_isin import MFISINDb\nwith MFISINDb() as db:\n    scheme_data = db.isin_lookup(\"Axis Long Term Equity Fund - Growth\",  # scheme name\n                                 \"KFINTECH\", # RTA\n                                 \"128TSDGG\", # Scheme RTA code\n                                 )\nprint(scheme_data)\n```\n```\nSchemeData(name=\"axis long term equity fund - direct growth\",\n           isin=\"INF846K01EW2\",\n           amfi_code=\"120503\",\n           score=100.0)\n```\n\nThe database also contains NAV values on 31-Jan-2018 for all funds, which can be used for\ntaxable LTCG computation for units purchased before the same date.\n\n```\nfrom casparser_isin import MFISINDb\nwith MFISINDb() as db:\n    nav = db.nav_lookup(\"INF846K01EW2\")\nprint(nav)\n```\n```\nDecimal('44.8938')\n```\n\n\n## Notes\n\n- casparser-isin is shipped with a local database which may get obsolete over time. The local\ndatabase can be updated via the cli tool\n\n```shell\ncasparser-isin --update\n```\n\n- casparser-isin will try to use the file provided by `CASPARSER_ISIN_DB` environment variable; if present, and the file exists\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "ISIN database for casparser",
    "version": "2023.9.3",
    "project_urls": {
        "Homepage": "https://github.com/codereverser/casparser-isin"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ba2d232616b545f207ff8b870c11917baa4489388271ecaba0abb4b8ff0a07b",
                "md5": "749a2c7f7858cb3b375f50eb595de301",
                "sha256": "f9cdebeb30accf1a058bb1a226830667b50efe266144268531ab5c3fd872df73"
            },
            "downloads": -1,
            "filename": "casparser_isin-2023.9.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "749a2c7f7858cb3b375f50eb595de301",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 2018593,
            "upload_time": "2023-09-03T09:49:52",
            "upload_time_iso_8601": "2023-09-03T09:49:52.789988Z",
            "url": "https://files.pythonhosted.org/packages/7b/a2/d232616b545f207ff8b870c11917baa4489388271ecaba0abb4b8ff0a07b/casparser_isin-2023.9.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50361e43c138b2e78bf212e90ce57c4d4fdc6955e1626efebb380243f2b92370",
                "md5": "be822ac843972bfe64aaa71226d91131",
                "sha256": "79a30856f22f706fb865e4e72b731981e79df6f7eb79b75fb7db81b11b20e706"
            },
            "downloads": -1,
            "filename": "casparser_isin-2023.9.3.tar.gz",
            "has_sig": false,
            "md5_digest": "be822ac843972bfe64aaa71226d91131",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 2012457,
            "upload_time": "2023-09-03T09:49:55",
            "upload_time_iso_8601": "2023-09-03T09:49:55.365683Z",
            "url": "https://files.pythonhosted.org/packages/50/36/1e43c138b2e78bf212e90ce57c4d4fdc6955e1626efebb380243f2b92370/casparser_isin-2023.9.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-03 09:49:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "codereverser",
    "github_project": "casparser-isin",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "casparser-isin"
}
        
Elapsed time: 0.14181s