Metadata-Version: 2.1
Name: casparser-isin
Version: 2021.3.1
Summary: ISIN database for casparser
Home-page: https://github.com/codereverser/casparser-isin
Author: Sandeep Somasekharan
Author-email: codereverser@gmail.com
License: MIT License
Keywords: pdf,parser,cas,cams,karvy,kfintech,isin
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: packaging (~=20.9)
Requires-Dist: rapidfuzz (~=1.1.1)
Provides-Extra: test
Requires-Dist: pytest-cov (>=2.10.1) ; extra == 'test'
Requires-Dist: coverage (>=5.3) ; extra == 'test'
Requires-Dist: pytest (>=6.1.2) ; extra == 'test'

# 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/workflow/status/codereverser/casparser-isin/run-tests)
[![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)
```

## Notes

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

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

