Skip to main content

ISO 4217 currency data package for Python

Project description

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.

Project details


Download files

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

Source Distribution

iso4217-1.6.20180829.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

iso4217-1.6.20180829-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file iso4217-1.6.20180829.tar.gz.

File metadata

  • Download URL: iso4217-1.6.20180829.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for iso4217-1.6.20180829.tar.gz
Algorithm Hash digest
SHA256 33f404b5eeb3cb8572f132b7c697782eccffeb00630900f305244ffa058e875c
MD5 c52f9fc250f5157d2dcdb6ab50ebc5aa
BLAKE2b-256 06be34b5a9303452725b7bd1861a593607090f0afb0c56ff5b3c70c92b20b03e

See more details on using hashes here.

File details

Details for the file iso4217-1.6.20180829-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for iso4217-1.6.20180829-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1f34f1c5956c62af0d9a3b91cf7f2566da97670af11fa848c524fb2214a057f9
MD5 37363c4f143a7be1158f3ec3e26b9f95
BLAKE2b-256 68f27ac00a52990623da868742697855ca2392ff11ee5934150fed0d94eb4d8c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page