Skip to main content

iso4217: Currency data package for Python

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.

Metadata

Release files for iso4217 1.4.20160701

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.4.20160701
File Size Uploaded
iso4217-1.4.20160701.tar.gz 10.7 kB Details

Built distribution (wheel)

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

Total release size: 22.2 kB

Release files / iso4217-1.4.20160701.tar.gz

Download URL iso4217-1.4.20160701.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a6379f7bbdae0adf127980dc2ce77dbeed7deaae9cf3b9c55a11aaad3768222d
BLAKE2b-256 checksum
How to use checksums
590e2f74b0d84890a1bff693aecb129ca2fc5c54fe4ac9d2f39430a8ad68fb08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL iso4217-1.4.20160701-py2.py3-none-any.whl
Size 11.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c5ed377e3883319c843ed0f35a978cd172056f7b237762d538a5c21cbf33647a
BLAKE2b-256 checksum
How to use checksums
2a2ee1a8b0b390837f7eeb6a1902e4277e835d384f2c815e39dd6f4ba0b960df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
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