Skip to main content

ISO 4217 currency data package for Python

Project description

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.

>>> 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
>>> Currency.krw is Currency.KRW  # Lower enumerants are also available

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.13.20250512.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iso4217-1.13.20250512-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: iso4217-1.13.20250512.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for iso4217-1.13.20250512.tar.gz
Algorithm Hash digest
SHA256 13df49c199255e1c333dda7f9019b76f7e6f54190e8b49875216e7cc8a8781d2
MD5 0d483b95b8e120eeed9679f748ef7c04
BLAKE2b-256 51de80bb9b6a0d99c31d829c0f7646274a2ec8e269ff6a0556050ce898b19af0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iso4217-1.13.20250512-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31de7df98e023c963bd368c741754a4cd7efbaea2d7cd51944180b33acd188da
MD5 fc6ffd7920e7433450d1a0343e2571e2
BLAKE2b-256 641d8fb75840e7183baba8bf347ed5cf789119e1c1046e660b39d12c7a5459c3

See more details on using hashes here.

Supported by

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