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.9.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.9.20220401
File Size Uploaded Provenance Actions
iso4217-1.9.20220401.tar.gz 12.4 kB Without provenance Details for iso4217-1.9.20220401.tar.gz

Built distribution (wheel)

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

Total release size: 22.9 kB

Release files / iso4217-1.9.20220401.tar.gz

Download URL iso4217-1.9.20220401.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e4c954a0c42e42a064cc226781cde39f88fe056959a391e2367c5e544d3107d2
BLAKE2b-256 checksum
How to use checksums
65216edb9f535b4871904cd51107e61f1791efee31f9870002b31f7e31b266e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.2

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

Download URL iso4217-1.9.20220401-py2.py3-none-any.whl
Size 10.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
53fe16e85bfa69b5af8345811179174e7f549918b33069f2cc7329d910e4b202
BLAKE2b-256 checksum
How to use checksums
dd4fe866176ec9db1d2c30599446f2d985cd83ccc2b2622a6472175bb78d3a7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.2

Security for iso4217 1.9.20220401

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.9.20220401 This release

2 release files No provenance

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