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.2.0.tar.gz
(29.8 kB
view details)
Built Distribution
iso18245-1.2.0-py3-none-any.whl
(42.8 kB
view details)
File details
Details for the file iso18245-1.2.0.tar.gz
.
File metadata
- Download URL: iso18245-1.2.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.10.4 Linux/5.17.5-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39abde3c5b179a45644ee967f86558df4cc6f250e7cefe5f613a568315f94c7b |
|
MD5 | de0393a6c5575d168a2d585e3bf05f2d |
|
BLAKE2b-256 | cfef5d424c108037a2c19fc6dc802d56d5867f97c811a1f2fd80a8faa4bab3a7 |
File details
Details for the file iso18245-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: iso18245-1.2.0-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.10.4 Linux/5.17.5-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79da90216a0b0ad263a762a4da1a667def0dd2b17e42f485c11f2678aec9a676 |
|
MD5 | 6d6833ec27c2c6f0de25fd1715050711 |
|
BLAKE2b-256 | 36de2d09d92c519ce5b31f1dc04ea5cca5612077eeacd6c48d471635f9dece22 |