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.13.20250512.tar.gz
(12.6 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.13.20250512.tar.gz.
File metadata
- Download URL: iso4217-1.13.20250512.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13df49c199255e1c333dda7f9019b76f7e6f54190e8b49875216e7cc8a8781d2
|
|
| MD5 |
0d483b95b8e120eeed9679f748ef7c04
|
|
| BLAKE2b-256 |
51de80bb9b6a0d99c31d829c0f7646274a2ec8e269ff6a0556050ce898b19af0
|
File details
Details for the file iso4217-1.13.20250512-py2.py3-none-any.whl.
File metadata
- Download URL: iso4217-1.13.20250512-py2.py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31de7df98e023c963bd368c741754a4cd7efbaea2d7cd51944180b33acd188da
|
|
| MD5 |
fc6ffd7920e7433450d1a0343e2571e2
|
|
| BLAKE2b-256 |
641d8fb75840e7183baba8bf347ed5cf789119e1c1046e660b39d12c7a5459c3
|