Skip to main content
https://badge.fury.io/py/iso4217.svg? https://github.com/dahlia/iso4217/actions/workflows/main.yaml/badge.svg

This Python package contains ISO 4217 currency data, represented as enum module which was introduced in 3.4.

>>> from iso4217 import Currency
>>> Currency.USD
<Currency.USD: 'USD'>
>>> Currency.USD.code
'USD'
>>> Currency.USD.currency_name
'US Dollar'
>>> Currency.USD.exponent  # USD has cents
2
>>> Currency.JPY
<Currency.JPY: 'JPY'>
>>> Currency.JPY.currency_name
'Yen'
>>> Currency.JPY.exponent  # JPY has no minor units
0
>>> Currency('KRW')  # Get by the code string
<Currency.KRW: 'KRW'>
>>> Currency.KRW is Currency('KRW')
True
>>> Currency.krw is Currency.KRW  # Lower enumerants are also available

Written by Hong Minhee. Distributed under Public Domain.

Metadata

Release files for iso4217 1.15.20260101

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

Source distribution (sdist)

Source distribution for iso4217 1.15.20260101
File Size Uploaded
iso4217-1.15.20260101.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iso4217 1.15.20260101
File Interpreter ABI Platform
iso4217-1.15.20260101-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 25.3 kB

Release files / iso4217-1.15.20260101.tar.gz

Download URL iso4217-1.15.20260101.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fde8d0ff97cd5fc4879daf785fe6efcba89bad9b3cb95722b30598324b9786b6
BLAKE2b-256 checksum
How to use checksums
5de3c02f51f03ae27c11f660d8f04bf6f8cfcc26325faae14f0a75e75f751507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / iso4217-1.15.20260101-py2.py3-none-any.whl

Download URL iso4217-1.15.20260101-py2.py3-none-any.whl
Size 11.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
acfe988f6bd3599cf89ebbf06247bcb5d6483e69ab11a0210904d5369774a036
BLAKE2b-256 checksum
How to use checksums
19e7376083be5c1aebbd7e7729d42d7b8efa102c3c7b2f262fa4f87b49ba7197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2
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