casparser-isin-2023.1.16
توضیحات
ISIN database for casparser
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | casparser-isin-2023.1.16 |
| نام | casparser-isin |
| نسخه کتابخانه | 2023.1.16 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sandeep Somasekharan |
| ایمیل نویسنده | codereverser@gmail.com |
| آدرس صفحه اصلی | https://github.com/codereverser/casparser-isin |
| آدرس اینترنتی | https://pypi.org/project/casparser-isin/ |
| مجوز | MIT |
# 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
نیازمندی
| مقدار | نام |
|---|---|
| >=20.9 | packaging |
| >=2.0.0,<3.0.0 | rapidfuzz |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl casparser-isin-2023.1.16:
pip install casparser-isin-2023.1.16.whl
نصب پکیج tar.gz casparser-isin-2023.1.16:
pip install casparser-isin-2023.1.16.tar.gz