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.14.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.14.20250512.tar.gz.
File metadata
- Download URL: iso4217-1.14.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 |
f036bd5460f1d371f2df253e90be5032930c8f76512f3a02ecfa5ad1e9fb164b
|
|
| MD5 |
8802029426857dbad1a5c9b8e076c391
|
|
| BLAKE2b-256 |
0729db0854475507162050c6245be61f37c7216d4157c09ec808ed13cc003d27
|
File details
Details for the file iso4217-1.14.20250512-py2.py3-none-any.whl.
File metadata
- Download URL: iso4217-1.14.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 |
f23974b5b6eb264709f6d764703d5c03f168807305077cb76d7cdfcca87d7d76
|
|
| MD5 |
9fd26541d528572485e072a897b37a99
|
|
| BLAKE2b-256 |
5d6f8e1d65453c7099f863d4785d8d3370192d4bcaffc26ad2bf0542c0fbd7f3
|