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.5 as well as 3.5, 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
iso4217-1.5.20180802.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file iso4217-1.5.20180802.tar.gz
.
File metadata
- Download URL: iso4217-1.5.20180802.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e48ebd40e1e94eabf7e9aee0c0fb4efc5915953b8cdaf2e0395879f1296c861 |
|
MD5 | 2de656b782794e3a046b4fe4f1a533e4 |
|
BLAKE2b-256 | 205135934c4e2f9fe643c86947c2b0a1d8b55d2f46edf58097ace22dd586ac69 |
File details
Details for the file iso4217-1.5.20180802-py2.py3-none-any.whl
.
File metadata
- Download URL: iso4217-1.5.20180802-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bacdcfc4497ab73cb43a48a4e8e5cc53595ca16331f2d59cc9618f83a063e5a8 |
|
MD5 | 6d59913eeb1ad968d6ffe43d6fb43e54 |
|
BLAKE2b-256 | fc0e402dc0c26f686f86402460c6f3a3bab671811a55731db7874dcb5b3185ff |