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.12.20240625

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.12.20240625
File Size Uploaded
iso4217-1.12.20240625.tar.gz 12.7 kB Details

Built distribution (wheel)

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

Total release size: 23.6 kB

Release files / iso4217-1.12.20240625.tar.gz

Download URL iso4217-1.12.20240625.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5756023b09f017ef59caa7017d0dfda7267419b12611b44f9e178c33598ab579
BLAKE2b-256 checksum
How to use checksums
cbde96868baeb7e9eb5869b2e77334f69b256ebce44a0c69e150468088956f7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

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

Download URL iso4217-1.12.20240625-py2.py3-none-any.whl
Size 10.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
557da07dbb18297c7571356e3f1dbd3e541f48bccd395a493d6ee73689c4b93d
BLAKE2b-256 checksum
How to use checksums
cc603c1ca81892263a384bf3aac83fcce7245e3fd078f81741357cc025bdc17f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4
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