Skip to main content

financial identifier validation.

Project description

# cymbology
cymbology identifies and validates financial security ids. Currently the following identifiers are supported:

1. Sedol
2. Cusip
3. Isin


This package can be used to validate these identifiers, discover the validation error, or create checksum digits.

# Example Usage:

### ISIN number
```python
from cymbology import Isin, cusip_from_isin
isin = Isin()

# validate ISIN number 'US0378331005', throwing error IdError if invalid
>>> valid_isin = isin.validate('US0378331005')
>>> valid_isin
'US0378331005'

# return validation boolean for ISIN number
>>> tf = isin.is_valid('US0378331005')
>>> tf
True

# calculate checksum for ISIN number 'US0378331005'
check_digit = isin.calculate_checksum('US037833100')

# convert ISIN to CUSIP number.
>>> cusip_from_isin('US0378331005')
'037833100'
```

# Dependancies and Installation Notes

This package currently only relies on the standard library, and has not been tested for Python 2.X.

# Running Tests

PYTHONPATH=. py.test --cov

# Extending

Idenifiers that rely on alpha-numeric codes should be able to be easily extended. Feel free to add additional identification algorithmns. Legal Indenifiers(LEI) ids will be added to master branch of repo soon.


Project details


Download files

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

Files for cymbology, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size cymbology-0.2.2-py3.5.egg (17.2 kB) File type Egg Python version 3.5 Upload date Hashes View
Filename, size cymbology-0.2.2-py3-none-any.whl (9.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cymbology-0.2.2.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page