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.12.20240625.tar.gz
(12.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.12.20240625.tar.gz.
File metadata
- Download URL: iso4217-1.12.20240625.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5756023b09f017ef59caa7017d0dfda7267419b12611b44f9e178c33598ab579
|
|
| MD5 |
6de14b2d6637ae155acc60aa92f5ce88
|
|
| BLAKE2b-256 |
cbde96868baeb7e9eb5869b2e77334f69b256ebce44a0c69e150468088956f7b
|
File details
Details for the file iso4217-1.12.20240625-py2.py3-none-any.whl.
File metadata
- Download URL: iso4217-1.12.20240625-py2.py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
557da07dbb18297c7571356e3f1dbd3e541f48bccd395a493d6ee73689c4b93d
|
|
| MD5 |
4966a37d61fead9ba1f7c34c4a707cfa
|
|
| BLAKE2b-256 |
cc603c1ca81892263a384bf3aac83fcce7245e3fd078f81741357cc025bdc17f
|