Skip to main content

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.0.1.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

iso18245-1.0.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file iso18245-1.0.1.tar.gz.

File metadata

  • Download URL: iso18245-1.0.1.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.2 Linux/5.6.4-arch1-1

File hashes

Hashes for iso18245-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f4e937427ce145f8a33b2b69adcd033a0edb7765a6bb39fbf307800cfe95f3f1
MD5 1eae8cd25cebf2c023b050debfda4089
BLAKE2b-256 c081162a2dd4e2919d47633c6136f47f55e6675a8644c7b5eda6979f24f982cc

See more details on using hashes here.

File details

Details for the file iso18245-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: iso18245-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.2 Linux/5.6.4-arch1-1

File hashes

Hashes for iso18245-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b945fadc175846ea89d49a4d9e0af3af67795071db32f7c9960604b12f65d58e
MD5 178344d17754ceda8e9197a457639f5e
BLAKE2b-256 ccc6e1137d0ced10817cd2f14e2fab14e10b193e12d8b9c74f14ef191f5745de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page