Skip to main content
https://badge.fury.io/py/iso4217.svg? https://travis-ci.org/dahlia/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.7, 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.

Metadata

Release files for iso4217 1.6.20180829

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iso4217 1.6.20180829
File Size Uploaded
iso4217-1.6.20180829.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iso4217 1.6.20180829
File Interpreter ABI Platform
iso4217-1.6.20180829-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.4 kB

Release files / iso4217-1.6.20180829.tar.gz

Download URL iso4217-1.6.20180829.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
33f404b5eeb3cb8572f132b7c697782eccffeb00630900f305244ffa058e875c
BLAKE2b-256 checksum
How to use checksums
06be34b5a9303452725b7bd1861a593607090f0afb0c56ff5b3c70c92b20b03e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / iso4217-1.6.20180829-py2.py3-none-any.whl

Download URL iso4217-1.6.20180829-py2.py3-none-any.whl
Size 9.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1f34f1c5956c62af0d9a3b91cf7f2566da97670af11fa848c524fb2214a057f9
BLAKE2b-256 checksum
How to use checksums
68f27ac00a52990623da868742697855ca2392ff11ee5934150fed0d94eb4d8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page