skillfed

iso4217

ISO 4217 currency data package for Python

iso4217 v1.16.20260101 701.7K downloads/30d#5,290 on PyPI67
Permissive license Public Domain Active released

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 iso4217

uv

uv add iso4217

poetry

poetry add iso4217

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: Public DomainOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Python :: Implementation :: StacklessTopic :: Office/Business :: FinancialTopic :: Software Development :: Internationalization

Tags

iso 4217 currency codescurrency data pythoncurrency enum lookupiso currency informationcurrency exponent minor unitscurrency code resolverinternational currency data
currency-datai18nfinancial

More Financial packages