ISO 4217 currency data package for Python
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|iso4217-1.5.20170609-py2.py3-none-any.whl (11.5 kB) Copy SHA256 Checksum SHA256||3.6||Wheel||Jun 9, 2017|
|iso4217-1.5.20170609.tar.gz (10.7 kB) Copy SHA256 Checksum SHA256||–||Source||Jun 9, 2017|