iso18245
The ISO 18245 Merchant Category Codes database
What it is and what it does
iso18245 is a Python library that wraps the ISO 18245 Merchant Category Codes standard into a queryable database. It lets you look up an MCC code (a four-digit number used by payment processors to classify merchants) and retrieve standardized descriptions from multiple sources: the ISO standard itself, USDA definitions, and Stripe's merchant category taxonomy. The library returns structured data including the MCC range, whether it's reserved for private use, and descriptions from each standard.
You'd use this when building payment processing systems, merchant onboarding flows, or financial reporting tools that need to classify or display merchant types consistently. The single runtime dependency (importlib_resources) keeps installation lightweight. It supports Python 3.8 through 3.13 and is marked production-stable.
Use it for:
- Classify merchants by category in payment processing or invoicing systems using standard MCC codes.
- Display human-readable merchant types to end users in fintech or accounting applications.
- Validate or normalize merchant category codes submitted in API requests or forms.
- Build merchant reporting dashboards that group transactions by ISO-standard category.
- Integrate merchant classification into compliance or risk-assessment workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides lookup access to ISO 18245 Merchant Category Codes (MCCs) with descriptions from ISO, USDA, and Stripe standards.
Yes. The package solves a specific, real problem (MCC lookup) with low friction, permissive licensing, and no known vulnerabilities. Install it if you need to work with merchant category codes in payment or financial systems. The aging maintenance status (345 days since last release) is not a blocker for a reference database, but verify that the MCC data meets your recency requirements.
Install
iso18245 on PyPI
pip
pip install iso18245uv
uv add iso18245poetry
poetry add iso18245Installing iso18245
Before you install
Low install friction with a single pure-Python dependency. Repository shows active maintenance with a recent commit and stable production status, though the last release was 345 days ago.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install iso18245
import iso18245
mcc = iso18245.get_mcc("5542")
print(mcc.iso_description) # 'Automated fuel dispensers'
Verify before relying
- Whether the MCC database is updated regularly to reflect changes in ISO 18245 standards or payment processor classifications.
- Performance characteristics when querying large numbers of codes or in high-throughput scenarios.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — importlib_resources |
| Maintenance | aging — 345 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 92,819/month — #13,421 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: iso18245-1.4.1-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
phone-iso3166Maps international phone numbers and mobile…
permissive · top 15,000 on PyPI
country-converterConverts and matches country names across…
copyleft · top 5,000 on PyPI
isocodesisocodes provides programmatic access to ISO…
permissive · top 15,000 on PyPI
google-shopping-merchant-productsPython client library for Google Shopping…
permissive · top 15,000 on PyPI
beanstreamProvides a Python client library for the…
permissive · top 15,000 on PyPI
ccyProvides a dictionary of currency objects with…
permissive · top 15,000 on PyPI
stripeProvides Python bindings to the Stripe API,…
permissive · top 1,000 on PyPI
python-iso639Maps ISO 639 language codes (639-1, 639-2,…
permissive · top 5,000 on PyPI
google-shopping-typeProvides Python type definitions and client…
permissive · top 15,000 on PyPI
country_listProvides ISO 3166-1 country codes and names in…
permissive · top 15,000 on PyPI