Skip to main content

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

Metadata

Release files for iso18245 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iso18245 1.4.1
File Size Uploaded Provenance Actions
iso18245-1.4.1.tar.gz 50.7 kB Without provenance Details for iso18245-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iso18245 1.4.1
File Interpreter ABI Platform Actions
iso18245-1.4.1-py3-none-any.whl Python 3 none any Details for iso18245-1.4.1-py3-none-any.whl

Total release size: 117.5 kB

Release files / iso18245-1.4.1.tar.gz

Download URL iso18245-1.4.1.tar.gz
Size 50.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1ee69d2b6b6334e29d9131371970a171649a969fe319ae7b09afcfc2ecb02720
BLAKE2b-256 checksum
How to use checksums
5cdee8095ac5ac026e4ad23c07d1cb35bc1495051d2ae32c863b246d43e1d9a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

Release files / iso18245-1.4.1-py3-none-any.whl

Download URL iso18245-1.4.1-py3-none-any.whl
Size 66.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07fcac02b22044e5f188a7683684f2166900a36d39119eb6ca0f4ef5f0df5772
BLAKE2b-256 checksum
How to use checksums
cd5eef3e709668014b9ebabb86d05f4848f96ffac406e202c7207b773b3ccc2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

Security for iso18245 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page