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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iso18245-1.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 e8bdf549e9984ec326407df5bdd64cd7f7bf6dd0c3e072b2afb13538e8462104
MD5 e0f8e2c4fc246431272433f4e3cff622
BLAKE2b-256 1f0411d54070fe99d69322298d9fc0c9d10a5d33b8aa8a5dfdd996e959718f19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iso18245-1.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d632df695ba339b02effb58bd64f48e7ead020dbcedef7c72bc34ed2c09baf78
MD5 4bd2fe76b3d2508c4529fbb684b26cec
BLAKE2b-256 bd9e70bf81e1a7ac36aa67a0d19d868ce29e0b6390b41458adf46bb9caf5f872

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