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.3.0.tar.gz
(29.3 kB
view details)
Built Distribution
iso18245-1.3.0-py3-none-any.whl
(42.8 kB
view details)
File details
Details for the file iso18245-1.3.0.tar.gz
.
File metadata
- Download URL: iso18245-1.3.0.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6aa03c2fc1bd75a4743574761b2c0badb1388257b50597c01895f66b31d00f |
|
MD5 | 50faf22e8237e9ede82ffc9c4bbd6b87 |
|
BLAKE2b-256 | 3d3ed07c1e8ecfd8995ec7ca0b9a3967c09cd3d7486d0529260b2a94738a459b |
File details
Details for the file iso18245-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: iso18245-1.3.0-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3ded01dd01383b26ff4b0af37179090cdf261efea2cbf86c9e8f12502e82bd |
|
MD5 | 9414243b797083278f08a99bfc0d76ff |
|
BLAKE2b-256 | 8c30230be9ea909a6ef1bbcc051bc580d386b791d68d60b283f50837d010b941 |