ISO 4217 currency data package for Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iso4217-1.16.20260101.tar.gz
(13.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iso4217-1.16.20260101.tar.gz.
File metadata
- Download URL: iso4217-1.16.20260101.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a5afba6acb01cad8045f81e2b96f6adbea04f0c524ae21f317ac4ca11c3bdd6
|
|
| MD5 |
3c4d13979a52a7447a8b1a6539be5afe
|
|
| BLAKE2b-256 |
4398a5f28006515c24de82c3d76f79e13dd3fbdf71431fdb158505ee45008908
|
File details
Details for the file iso4217-1.16.20260101-py2.py3-none-any.whl.
File metadata
- Download URL: iso4217-1.16.20260101-py2.py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c591b93c7d783ec8c309ebee8df1aa28f8403d44bcce518ae8db050462084b
|
|
| MD5 |
7652ff43c0797d27156873dd0b8b4f86
|
|
| BLAKE2b-256 |
b45b725a6980401169ba9115f0b837d3af09134e43eaed9b2bebd8dbb50df733
|