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.14.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.14.20250512-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: iso4217-1.14.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.14.20250512.tar.gz
Algorithm Hash digest
SHA256 f036bd5460f1d371f2df253e90be5032930c8f76512f3a02ecfa5ad1e9fb164b
MD5 8802029426857dbad1a5c9b8e076c391
BLAKE2b-256 0729db0854475507162050c6245be61f37c7216d4157c09ec808ed13cc003d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iso4217-1.14.20250512-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f23974b5b6eb264709f6d764703d5c03f168807305077cb76d7cdfcca87d7d76
MD5 9fd26541d528572485e072a897b37a99
BLAKE2b-256 5d6f8e1d65453c7099f863d4785d8d3370192d4bcaffc26ad2bf0542c0fbd7f3

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