# CASParser-ISIN
[](https://github.com/psf/black)
[](https://github.com/codereverser/casparser/blob/main/LICENSE)

[](https://codecov.io/gh/codereverser/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/64/01/413cefbb210e08f0294d7b9885ab7278662f8c68b5d7b9d866b09274508a/casparser_isin-2023.9.10.tar.gz",
"platform": null,
"description": "# CASParser-ISIN\n\n[](https://github.com/psf/black)\n[](https://github.com/codereverser/casparser/blob/main/LICENSE)\n\n[](https://codecov.io/gh/codereverser/casparser-isin)\n\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",
"bugtrack_url": null,
"license": "MIT",
"summary": "ISIN database for casparser",
"version": "2023.9.10",
"project_urls": {
"Homepage": "https://github.com/codereverser/casparser-isin"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d68e2414dc2cebabd9af36c23b97db80d308bbe31ef2bccd2d75fd1ea35038c4",
"md5": "c9157005678f767f43f3e1a4c89937ca",
"sha256": "e89c264d29c1c9ab229ea1615a1dd5849f61e8530329090a24a1f756a9867b07"
},
"downloads": -1,
"filename": "casparser_isin-2023.9.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c9157005678f767f43f3e1a4c89937ca",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 2019600,
"upload_time": "2023-09-10T04:11:06",
"upload_time_iso_8601": "2023-09-10T04:11:06.858758Z",
"url": "https://files.pythonhosted.org/packages/d6/8e/2414dc2cebabd9af36c23b97db80d308bbe31ef2bccd2d75fd1ea35038c4/casparser_isin-2023.9.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6401413cefbb210e08f0294d7b9885ab7278662f8c68b5d7b9d866b09274508a",
"md5": "94a0061b54b53ff99efe49302c8145a6",
"sha256": "51beb5aa24ee567d906b7384a87577132d0a6d69202430897fc7a1cbafaf1edb"
},
"downloads": -1,
"filename": "casparser_isin-2023.9.10.tar.gz",
"has_sig": false,
"md5_digest": "94a0061b54b53ff99efe49302c8145a6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 2013607,
"upload_time": "2023-09-10T04:11:08",
"upload_time_iso_8601": "2023-09-10T04:11:08.849589Z",
"url": "https://files.pythonhosted.org/packages/64/01/413cefbb210e08f0294d7b9885ab7278662f8c68b5d7b9d866b09274508a/casparser_isin-2023.9.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-10 04:11:08",
"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"
}