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.
Metadata
Release files for cymbology 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cymbology-0.2.3.tar.gz | 6.0 kB | Without provenance | Details for cymbology-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cymbology-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for cymbology-0.2.3-py3-none-any.whl |
Total release size: 15.6 kB
Release files / cymbology-0.2.3.tar.gz
| Download URL | cymbology-0.2.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c087077fcbc705e3ea34d5084ae3f44b84f86c68f4d0812bf74cd02b8d9cd6e
|
|
BLAKE2b-256 checksum How to use checksums |
2f912ad05dbbe31eff6b491a3349b068620abaf5ca76790c105f43b1110ba129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cymbology-0.2.3-py3-none-any.whl
| Download URL | cymbology-0.2.3-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0681bdeaca06954001bf0137723807eeede7dea9f63163e76f568c272f81b7d
|
|
BLAKE2b-256 checksum How to use checksums |
debf448d0d412c39676cce3de85721073b02ffffd6fe61140e01bebbc9866120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cymbology 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.