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. Note that this works on Python 2.7 as well as 3.10, the latest version of Python, through enum34 package.
>>> 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
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
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.10.20220401.tar.gz.
File metadata
- Download URL: iso4217-1.10.20220401.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f612647995a8e663e9ac8fac49decdef3ed5594362477a30ae42a1838e8a25ec
|
|
| MD5 |
05b63b265537c1d765292e5ba556b91d
|
|
| BLAKE2b-256 |
a1aecb02144cfcff4a0d2510ab4eceddf5b201521c79f4a3ba3252e6117f182b
|
File details
Details for the file iso4217-1.10.20220401-py2.py3-none-any.whl.
File metadata
- Download URL: iso4217-1.10.20220401-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f30cf1fde888258566dea1ecf7380bc1fbf6a94fb69056c0dbafe482a34c0edc
|
|
| MD5 |
3ab400310de192f0005ee92f232546a0
|
|
| BLAKE2b-256 |
0d3498d51d6ebe5f6f5ab57f5e553dfe388d8506a4a4c1a136bfed8f175ca253
|