Skip to main content

iso4217: Currency data package for Python

https://badge.fury.io/py/iso4217.svg? https://github.com/dahlia/iso4217/actions/workflows/main.yaml/badge.svg

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.7 as well as 3.10, 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.11.20220401

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.11.20220401
File Size Uploaded
iso4217-1.11.20220401.tar.gz 12.4 kB Details

Built distribution (wheel)

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

Total release size: 23.4 kB

Release files / iso4217-1.11.20220401.tar.gz

Download URL iso4217-1.11.20220401.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
03b5c1493f47c3fb4fb066135d66115340ddab55633b85d0ed39acacab3a090e
BLAKE2b-256 checksum
How to use checksums
769fddd80d675f6f06175539010bc28ee7bc5efef0615813b29856891ee47ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

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

Download URL iso4217-1.11.20220401-py2.py3-none-any.whl
Size 11.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
28f9c47cc6961c85b87599af7d61df90f707efd936babeb88094c2e1d8d67e82
BLAKE2b-256 checksum
How to use checksums
e98aad094d02ac7650123acd232ae1234beeaab84983bd330916d30bc58816cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
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