Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

ISO 4217 currency data package for Python

Project description

https://badge.fury.io/py/iso4217.svg? https://travis-ci.org/spoqa/iso4217.svg?branch=master

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

This version
History Node

1.5.20180604

History Node

1.5.20180101

History Node

1.5.20170922

History Node

1.5.20170609

History Node

1.5.20170101

History Node

1.4.20160701

History Node

1.4.20160224

History Node

1.3.20160701

History Node

1.3.20160224

History Node

1.2.20150619

History Node

1.1.20150619

History Node

1.0.20140328

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
iso4217-1.5.20180604-py2.py3-none-any.whl (9.9 kB) Copy SHA256 hash SHA256 Wheel 3.6 Jun 4, 2018
iso4217-1.5.20180604.tar.gz (10.7 kB) Copy SHA256 hash SHA256 Source None Jun 4, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page