python-iso18245
A Python implementation of the ISO 18245 Merchant Category Codes database.
Installation
pip install iso18245
Usage
>>> import iso18245
>>> iso18245.get_mcc("5542")
MCC(range=MCCRange(start='5000', end='5599', description='Retail outlets', reserved=False), iso_description='Automated fuel dispensers', usda_description='Automated Fuel Dispensers', stripe_description='Automated Fuel Dispensers', stripe_code='automated_fuel_dispensers')
>>> iso18245.get_mcc("3000")
MCC(range=MCCRange(start='3000', end='3999', description='Reserved for private use', reserved=True), iso_description='', usda_description='UNITED AIRLINES', stripe_description='', stripe_code='')
>>> iso18245.get_mcc("3000").usda_description
'UNITED AIRLINES'
>>> iso18245.get_mcc("3000").range
MCCRange(start='3000', end='3999', description='Reserved for private use', reserved=True)
>>> iso18245.get_mcc("999999")
Traceback (most recent call last):
…
iso18245.InvalidMCC: 999999
External links
Metadata
Release files for iso18245 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iso18245-1.4.1.tar.gz | 50.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iso18245-1.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.5 kB
Release files / iso18245-1.4.1.tar.gz
| Download URL | iso18245-1.4.1.tar.gz |
|---|---|
| Size | 50.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ee69d2b6b6334e29d9131371970a171649a969fe319ae7b09afcfc2ecb02720
|
|
BLAKE2b-256 checksum How to use checksums |
5cdee8095ac5ac026e4ad23c07d1cb35bc1495051d2ae32c863b246d43e1d9a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / iso18245-1.4.1-py3-none-any.whl
| Download URL | iso18245-1.4.1-py3-none-any.whl |
|---|---|
| Size | 66.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07fcac02b22044e5f188a7683684f2166900a36d39119eb6ca0f4ef5f0df5772
|
|
BLAKE2b-256 checksum How to use checksums |
cd5eef3e709668014b9ebabb86d05f4848f96ffac406e202c7207b773b3ccc2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
|