The ISO 18245 Merchant Category Codes database
Project description
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
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
iso18245-1.4.1.tar.gz
(50.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
iso18245-1.4.1-py3-none-any.whl
(66.7 kB
view details)
File details
Details for the file iso18245-1.4.1.tar.gz.
File metadata
- Download URL: iso18245-1.4.1.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee69d2b6b6334e29d9131371970a171649a969fe319ae7b09afcfc2ecb02720
|
|
| MD5 |
2dfc6b15121940703d12aa13f58a4ee4
|
|
| BLAKE2b-256 |
5cdee8095ac5ac026e4ad23c07d1cb35bc1495051d2ae32c863b246d43e1d9a1
|
File details
Details for the file iso18245-1.4.1-py3-none-any.whl.
File metadata
- Download URL: iso18245-1.4.1-py3-none-any.whl
- Upload date:
- Size: 66.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07fcac02b22044e5f188a7683684f2166900a36d39119eb6ca0f4ef5f0df5772
|
|
| MD5 |
b03d4e8d91dd043e74a099fe2598e0e0
|
|
| BLAKE2b-256 |
cd5eef3e709668014b9ebabb86d05f4848f96ffac406e202c7207b773b3ccc2f
|