iso4217


Nameiso4217 JSON
Version 1.12.20240625 PyPI version JSON
download
home_pagehttps://github.com/dahlia/iso4217
SummaryISO 4217 currency data package for Python
upload_time2024-07-24 03:53:18
maintainerNone
docs_urlNone
authorHong Minhee
requires_python!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
licensePublic Domain
keywords internationalization i18n currency iso4217
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ``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.

>>> 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.


.. _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": null,
    "docs_url": null,
    "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
    "maintainer_email": null,
    "keywords": "internationalization i18n currency iso4217",
    "author": "Hong Minhee",
    "author_email": "hong.minhee@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cb/de/96868baeb7e9eb5869b2e77334f69b256ebce44a0c69e150468088956f7b/iso4217-1.12.20240625.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.\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>>> Currency.krw is Currency.KRW  # Lower enumerants are also available\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",
    "bugtrack_url": null,
    "license": "Public Domain",
    "summary": "ISO 4217 currency data package for Python",
    "version": "1.12.20240625",
    "project_urls": {
        "Homepage": "https://github.com/dahlia/iso4217"
    },
    "split_keywords": [
        "internationalization",
        "i18n",
        "currency",
        "iso4217"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc603c1ca81892263a384bf3aac83fcce7245e3fd078f81741357cc025bdc17f",
                "md5": "4966a37d61fead9ba1f7c34c4a707cfa",
                "sha256": "557da07dbb18297c7571356e3f1dbd3e541f48bccd395a493d6ee73689c4b93d"
            },
            "downloads": -1,
            "filename": "iso4217-1.12.20240625-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4966a37d61fead9ba1f7c34c4a707cfa",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
            "size": 10912,
            "upload_time": "2024-07-24T03:53:16",
            "upload_time_iso_8601": "2024-07-24T03:53:16.281353Z",
            "url": "https://files.pythonhosted.org/packages/cc/60/3c1ca81892263a384bf3aac83fcce7245e3fd078f81741357cc025bdc17f/iso4217-1.12.20240625-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cbde96868baeb7e9eb5869b2e77334f69b256ebce44a0c69e150468088956f7b",
                "md5": "6de14b2d6637ae155acc60aa92f5ce88",
                "sha256": "5756023b09f017ef59caa7017d0dfda7267419b12611b44f9e178c33598ab579"
            },
            "downloads": -1,
            "filename": "iso4217-1.12.20240625.tar.gz",
            "has_sig": false,
            "md5_digest": "6de14b2d6637ae155acc60aa92f5ce88",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
            "size": 12686,
            "upload_time": "2024-07-24T03:53:18",
            "upload_time_iso_8601": "2024-07-24T03:53:18.037992Z",
            "url": "https://files.pythonhosted.org/packages/cb/de/96868baeb7e9eb5869b2e77334f69b256ebce44a0c69e150468088956f7b/iso4217-1.12.20240625.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-24 03:53:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dahlia",
    "github_project": "iso4217",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "iso4217"
}
        
Elapsed time: 0.25729s