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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iso18245-1.4.1-py3-none-any.whl (66.7 kB view details)

Uploaded Python 3

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

Hashes for iso18245-1.4.1.tar.gz
Algorithm Hash digest
SHA256 1ee69d2b6b6334e29d9131371970a171649a969fe319ae7b09afcfc2ecb02720
MD5 2dfc6b15121940703d12aa13f58a4ee4
BLAKE2b-256 5cdee8095ac5ac026e4ad23c07d1cb35bc1495051d2ae32c863b246d43e1d9a1

See more details on using hashes here.

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

Hashes for iso18245-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07fcac02b22044e5f188a7683684f2166900a36d39119eb6ca0f4ef5f0df5772
MD5 b03d4e8d91dd043e74a099fe2598e0e0
BLAKE2b-256 cd5eef3e709668014b9ebabb86d05f4848f96ffac406e202c7207b773b3ccc2f

See more details on using hashes here.

Supported by

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