iso4217
ISO 4217 currency data package for Python
What it is and what it does
iso4217 wraps ISO 4217 currency data into a Python enum, letting you access currency metadata by code. Each currency entry includes its three-letter code, full name, and exponent (the number of decimal places in the currency's minor units—for example, USD has 2 for cents, JPY has 0). You can look up currencies by attribute (Currency.USD) or by string (Currency('USD')), and both forms return the same enum member.
The package is a thin, dependency-light data layer: it depends only on importlib-resources and works across Python 3.6 through 3.14. It's useful when you need reliable, standardized currency information without building your own lookup table or hitting an external API.
Use it for:
- Validate or normalize currency codes in financial applications or payment systems
- Determine decimal precision for currency formatting or rounding in multi-currency transactions
- Build currency selection dropdowns or autocomplete fields with standard ISO codes and names
- Localize or display currency names in internationalized applications
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides ISO 4217 currency data as a Python enum, allowing you to look up currency codes, names, and exponent values (minor unit precision) programmatically.
Yes. This is a stable, zero-vulnerability, permissive-licensed data package with low install friction and active maintenance. Install it if you need reliable ISO 4217 currency lookups; the enum interface is clean and the dependency footprint is minimal.
Install
iso4217 on PyPI
pip
pip install iso4217uv
uv add iso4217poetry
poetry add iso4217Installing iso4217
Before you install
Low friction: pure Python wheel with a single lightweight dependency (importlib-resources). Active maintenance with a recent release and no known vulnerabilities.
License in practice
Public Domain license means no restrictions on use, modification, or distribution—you can use this freely in any project without license compliance concerns.
Quickstart
pip install iso4217
from iso4217 import Currency
usd = Currency.USD
print(usd.code) # 'USD'
print(usd.currency_name) # 'US Dollar'
print(usd.exponent) # 2
Verify before relying
- Whether the enum includes all current ISO 4217 currencies or if there are known omissions
- How frequently the package updates when ISO 4217 standards change
Package facts
| License | Public Domain (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — importlib-resources |
| Maintenance | actively maintained — 164 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 701,749/month — #5,290 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: iso4217-1.16.20260101-py2.py3-none-any.whl
Keywords: internationalization, i18n, currency, iso4217
Tags
More Financial packages
statsmodels provides statistical models,…
permissive · top 1,000 on PyPI
yfinanceFetches financial and market data from Yahoo…
permissive · top 1,000 on PyPI
bokehBokeh is an interactive visualization library…
permissive · top 5,000 on PyPI
python-stdnumParses, validates, and reformats standard…
copyleft · top 5,000 on PyPI
panelPanel is a Python framework for building…
permissive · top 5,000 on PyPI
databentoOfficial Python client for accessing live and…
permissive · top 5,000 on PyPI
currency-symbolsMaps ISO 4217 currency codes to their symbols…
permissive · top 5,000 on PyPI
py-moneyRepresents monetary amounts with currency-aware…
permissive · top 15,000 on PyPI
ccyProvides a dictionary of currency objects with…
permissive · top 15,000 on PyPI
py-moneyedProvides Money and Currency classes for…
permissive · top 5,000 on PyPI
isocodesisocodes provides programmatic access to ISO…
permissive · top 15,000 on PyPI
hdx-python-countryMaps country and region codes and names,…
permissive · top 15,000 on PyPI
pycountryProvides programmatic access to ISO standard…
copyleft · top 1,000 on PyPI
forex-pythonFetches current and historical foreign exchange…
permissive · top 15,000 on PyPI
sepaxmlGenerates SEPA XML payment files for direct…
permissive · top 15,000 on PyPI
cpiAdjusts U.S. dollar amounts for inflation using…
permissive · top 15,000 on PyPI