ISO 4217 currency data package for Python
Project description
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
Release history Release notifications | RSS feed
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.12.20240625.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for iso4217-1.12.20240625-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 557da07dbb18297c7571356e3f1dbd3e541f48bccd395a493d6ee73689c4b93d |
|
MD5 | 4966a37d61fead9ba1f7c34c4a707cfa |
|
BLAKE2b-256 | cc603c1ca81892263a384bf3aac83fcce7245e3fd078f81741357cc025bdc17f |