Skip to main content

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.7, the latest version of Python, through enum34 package.

>>> from iso4217 import Currency
>>> Currency.usd
<Currency.usd: 'USD'>
>>> Currency.usd.code
>>> Currency.usd.currency_name
'US Dollar'
>>> Currency.usd.exponent  # USD has cents
>>> Currency.jpy
<Currency.jpy: 'JPY'>
>>> Currency.jpy.currency_name
>>> Currency.jpy.exponent  # JPY has no minor units
>>> Currency('KRW')  # Get by the code string
<Currency.krw: 'KRW'>
>>> Currency.krw is Currency('KRW')

Written by Hong Minhee. Distributed under Public Domain.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for iso4217, version 1.6.20180829
Filename, size File type Python version Upload date Hashes
Filename, size iso4217-1.6.20180829-py2.py3-none-any.whl (9.9 kB) File type Wheel Python version 3.7 Upload date Hashes View
Filename, size iso4217-1.6.20180829.tar.gz (11.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page