Skip to main content

ISIN database for casparser

Project description

CASParser-ISIN

code style: black GitHub GitHub Workflow Status codecov PyPI - Python Version

ISIN Database for casparser.

Installation

pip install -U casparser-isin

Usage

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
casparser-isin --update
  • casparser-isin will try to use the file provided by CASPARSER_ISIN_DB environment variable; if present, and the file exists

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

casparser_isin-2023.1.16.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

casparser_isin-2023.1.16-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file casparser_isin-2023.1.16.tar.gz.

File metadata

  • Download URL: casparser_isin-2023.1.16.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for casparser_isin-2023.1.16.tar.gz
Algorithm Hash digest
SHA256 f4e6e52c1d11ef1b4d3b372a779164906512c1756f2d7cae3c5336685c98f190
MD5 a109a97d0268f08705bb03589480e467
BLAKE2b-256 0abf24d6a17a7e2e83dd34e17e847ecf3144c4286baa99687d927963a1a47ce8

See more details on using hashes here.

File details

Details for the file casparser_isin-2023.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for casparser_isin-2023.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 328d76894fe4771fc1c316e4584f54fba456d53e2fa1bf5c87021256b6c6f03c
MD5 10a567961cbf522e4776a5dc86e8ed52
BLAKE2b-256 5527feb013e2cded2ebadbeddfbb557d00c2339313f181f4d5db5a7980aab2a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page