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.4.20160224.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file iso4217-1.4.20160224.tar.gz
.
File metadata
- Download URL: iso4217-1.4.20160224.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fcd1e6539ffc6186c02476a2d88a2f9d09510541450e93e1b2da12bb5acc8dd |
|
MD5 | 55b3cee9916a87cbde405fa18bba1ed7 |
|
BLAKE2b-256 | 3ab8d8b98bea1ed3a0a8202addfe8d8d53adec7bdc08ac8f652efc906abe2e50 |
File details
Details for the file iso4217-1.4.20160224-py2.py3-none-any.whl
.
File metadata
- Download URL: iso4217-1.4.20160224-py2.py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 123493d520bd1f3f2dba94a70fd32ba58de268a6bc9f86c2b365739ab5b9728a |
|
MD5 | 324dac7a9221fd48e2aec75ff920ea1c |
|
BLAKE2b-256 | 82906547151c401a9bb16ad93d727500559c08b5dc5d4164babc34f5518e7251 |