``iso4217``: Currency data package for Python
=============================================
.. image:: https://badge.fury.io/py/iso4217.svg?
:target: https://pypi.python.org/pypi/iso4217
.. image:: https://github.com/dahlia/iso4217/actions/workflows/main.yaml/badge.svg
:target: https://github.com/dahlia/iso4217/actions/workflows/main.yaml
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.
.. _ISO 4217: http://www.iso.org/iso/home/standards/currency_codes.htm
.. _enum: https://docs.python.org/3/library/enum.html
.. _enum34: https://pypi.python.org/pypi/enum34
.. _Hong Minhee: https://hongminhee.org/
Raw data
{
"_id": null,
"home_page": "https://github.com/dahlia/iso4217",
"name": "iso4217",
"maintainer": "",
"docs_url": null,
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"maintainer_email": "",
"keywords": "internationalization i18n currency iso4217",
"author": "Hong Minhee",
"author_email": "hong.minhee@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/76/9f/ddd80d675f6f06175539010bc28ee7bc5efef0615813b29856891ee47ed1/iso4217-1.11.20220401.tar.gz",
"platform": "any",
"description": "``iso4217``: Currency data package for Python\n=============================================\n\n.. image:: https://badge.fury.io/py/iso4217.svg?\n :target: https://pypi.python.org/pypi/iso4217\n.. image:: https://github.com/dahlia/iso4217/actions/workflows/main.yaml/badge.svg\n :target: https://github.com/dahlia/iso4217/actions/workflows/main.yaml\n\nThis Python package contains `ISO 4217`_ currency data, represented as\nenum_ module which was introduced in 3.4. Note that this works on Python 2.7\nas well as 3.10, the latest version of Python, through enum34_ package.\n\n>>> from iso4217 import Currency\n>>> Currency.usd\n<Currency.usd: 'USD'>\n>>> Currency.usd.code\n'USD'\n>>> Currency.usd.currency_name\n'US Dollar'\n>>> Currency.usd.exponent # USD has cents\n2\n>>> Currency.jpy\n<Currency.jpy: 'JPY'>\n>>> Currency.jpy.currency_name\n'Yen'\n>>> Currency.jpy.exponent # JPY has no minor units\n0\n>>> Currency('KRW') # Get by the code string\n<Currency.krw: 'KRW'>\n>>> Currency.krw is Currency('KRW')\nTrue\n\nWritten by `Hong Minhee`_. Distributed under Public Domain.\n\n\n.. _ISO 4217: http://www.iso.org/iso/home/standards/currency_codes.htm\n.. _enum: https://docs.python.org/3/library/enum.html\n.. _enum34: https://pypi.python.org/pypi/enum34\n.. _Hong Minhee: https://hongminhee.org/\n\n\n",
"bugtrack_url": null,
"license": "Public Domain",
"summary": "ISO 4217 currency data package for Python",
"version": "1.11.20220401",
"split_keywords": [
"internationalization",
"i18n",
"currency",
"iso4217"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "bdf6ddfb17d330208085e898b3b77220",
"sha256": "28f9c47cc6961c85b87599af7d61df90f707efd936babeb88094c2e1d8d67e82"
},
"downloads": -1,
"filename": "iso4217-1.11.20220401-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bdf6ddfb17d330208085e898b3b77220",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"size": 10957,
"upload_time": "2022-07-14T18:35:13",
"upload_time_iso_8601": "2022-07-14T18:35:13.823530Z",
"url": "https://files.pythonhosted.org/packages/e9/8a/ad094d02ac7650123acd232ae1234beeaab84983bd330916d30bc58816cd/iso4217-1.11.20220401-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "c0aa3a21ffb61e829b0b87aedbfcd38c",
"sha256": "03b5c1493f47c3fb4fb066135d66115340ddab55633b85d0ed39acacab3a090e"
},
"downloads": -1,
"filename": "iso4217-1.11.20220401.tar.gz",
"has_sig": false,
"md5_digest": "c0aa3a21ffb61e829b0b87aedbfcd38c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"size": 12406,
"upload_time": "2022-07-14T18:35:16",
"upload_time_iso_8601": "2022-07-14T18:35:16.229502Z",
"url": "https://files.pythonhosted.org/packages/76/9f/ddd80d675f6f06175539010bc28ee7bc5efef0615813b29856891ee47ed1/iso4217-1.11.20220401.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-07-14 18:35:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "dahlia",
"github_project": "iso4217",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "iso4217"
}