{ "info": { "author": "Alireza Savand", "author_email": "alireza.savand@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: GNU General Public License (GPL)", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Office/Business :: Financial", "Topic :: Office/Business :: Financial :: Accounting", "Topic :: Software Development" ], "description": "==================\r\nPython Currencies\r\n==================\r\n\r\nDisplay money format and its filthy currencies, for all money lovers out there.\r\n\r\n.. image:: https://secure.travis-ci.org/Alir3z4/python-currencies.png\r\n :alt: Build Status\r\n :target: http://travis-ci.org/Alir3z4/python-currencies\r\n\r\n\r\n.. image:: https://coveralls.io/repos/Alir3z4/python-currencies/badge.png\r\n :alt: Coverage Status\r\n :target: https://coveralls.io/r/Alir3z4/python-currencies\r\n\r\n\r\n.. image:: https://pypip.in/d/currencies/badge.png\r\n :alt: Downloads\r\n :target: https://pypi.python.org/pypi/currencies/\r\n\r\n\r\n.. image:: https://pypip.in/v/currencies/badge.png\r\n :alt: Version\r\n :target: https://pypi.python.org/pypi/currencies/\r\n\r\n\r\n.. image:: https://pypip.in/egg/currencies/badge.png\r\n :alt: Egg\r\n :target: https://pypi.python.org/pypi/currencies/\r\n\r\n\r\n.. image:: https://pypip.in/wheel/currencies/badge.png\r\n :alt: Wheel\r\n :target: https://pypi.python.org/pypi/currencies/\r\n\r\n\r\n.. image:: https://pypip.in/format/currencies/badge.png\r\n :alt: Format\r\n :target: https://pypi.python.org/pypi/currencies/\r\n\r\n.. image:: https://pypip.in/license/currencies/badge.png\r\n :alt: License\r\n :target: https://pypi.python.org/pypi/currencies/\r\n\r\n\r\n\r\nInstallation\r\n------------\r\n``currencies`` is available on PyPi\r\n\r\nhttp://pypi.python.org/pypi/currencies\r\n\r\nSo easily install it by ``pip``\r\n\r\n::\r\n\r\n $ pip install currencies\r\n\r\nOr by ``easy_install``\r\n\r\n::\r\n\r\n $ easy_install currencies\r\n\r\nAnother way is by cloning ``currencies``'s `git repo `_\r\n\r\n::\r\n\r\n $ git clone git://github.com/Alir3z4/python-currencies.git\r\n\r\nThen install it by running:\r\n::\r\n\r\n $ python setup.py install\r\n\r\n\r\nUsage\r\n-----\r\n\r\nDisplaying money format:\r\n\r\n>>> from currencies import Currency\r\n>>>\r\n>>> currency = Currency('USD')\r\n>>> currency.get_money_format(13)\r\n>>> '$13'\r\n>>> currency.get_money_format(13.99)\r\n>>> '$13.99'\r\n>>> currency.get_money_format('13,2313,33')\r\n>>> '$13,2313,33'\r\n>>>\r\n>>> # Displaying with currency as well\r\n>>>\r\n>>> currency.get_money_with_currency_format(13)\r\n>>> '$13 USD'\r\n>>> currency.get_money_with_currency_format(13.99)\r\n>>> '$13.99 USD'\r\n>>> currency.get_money_with_currency_format('13,2313,33')\r\n>>> '$13,2313,33 USD'\r\n\r\n\r\n\r\nTests\r\n-----\r\n\r\n``currencies`` is well tested, to run the test suite:\r\n\r\n::\r\n\r\n $ PYTHONPATH=$PYTHONPATH:. python setup.py test\r\n\r\n\r\nAvailable currencies\r\n---------------------\r\n\r\n* AED\r\n* ALL\r\n* AMD\r\n* ANG\r\n* AOA\r\n* ARS\r\n* AUD\r\n* AWG\r\n* AZN\r\n* BAM\r\n* BBD\r\n* BDT\r\n* BGN\r\n* BHD\r\n* BND\r\n* BOB\r\n* BRL\r\n* BSD\r\n* BTN\r\n* BWP\r\n* BYR\r\n* BZD\r\n* CAD\r\n* CHF\r\n* CLP\r\n* CNY\r\n* COP\r\n* CRC\r\n* CZK\r\n* DKK\r\n* DOP\r\n* DZD\r\n* EGP\r\n* ETB\r\n* EUR\r\n* FJD\r\n* GBP\r\n* GEL\r\n* GHS\r\n* GMD\r\n* GTQ\r\n* GYD\r\n* HKD\r\n* HNL\r\n* HRK\r\n* HUF\r\n* IDR\r\n* ILS\r\n* INR\r\n* ISK\r\n* JEP\r\n* JMD\r\n* JOD\r\n* JPY\r\n* KES\r\n* KGS\r\n* KHR\r\n* KRW\r\n* KWD\r\n* KYD\r\n* KZT\r\n* LBP\r\n* LKR\r\n* LTL\r\n* LVL\r\n* MAD\r\n* MDL\r\n* MGA\r\n* MKD\r\n* MMK\r\n* MNT\r\n* MOP\r\n* MUR\r\n* MVR\r\n* MXN\r\n* MYR\r\n* MZN\r\n* NAD\r\n* NGN\r\n* NIO\r\n* NOK\r\n* NPR\r\n* NZD\r\n* OMR\r\n* PEN\r\n* PGK\r\n* PHP\r\n* PKR\r\n* PLN\r\n* PYG\r\n* QAR\r\n* RON\r\n* RSD\r\n* RUB\r\n* RWF\r\n* SAR\r\n* SCR\r\n* SEK\r\n* SGD\r\n* STD\r\n* SYP\r\n* THB\r\n* TND\r\n* TRY\r\n* TTD\r\n* TWD\r\n* TZS\r\n* UAH\r\n* UGX\r\n* USD\r\n* UYU\r\n* VEF\r\n* VND\r\n* VUV\r\n* WST\r\n* XAF\r\n* XBT\r\n* XCD\r\n* XOF\r\n* XPF\r\n* ZAR\r\n* ZMW\r\n\r\n\r\n----\r\n\r\n========== ======\r\nSource https://github.com/Alir3z4/python-currencies\r\nWebsite https://github.com/Alir3z4/python-currencies\r\nIssues https://github.com/Alir3z4/python-currencies/issues\r\nPyPi http://pypi.python.org/pypi/python-currencies\r\nAuthor Alireza Savand\r\nLicense GNU GPL 3\r\n========== ======", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Alir3z4/python-currencies", "keywords": "", "license": "GNU GPL 3", "maintainer": "Alireza Savand", "maintainer_email": "alireza.savand@gmail.com", "name": "currencies", "package_url": "https://pypi.org/project/currencies/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/currencies/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Alir3z4/python-currencies" }, "release_url": "https://pypi.org/project/currencies/2014.7.13/", "requires_dist": null, "requires_python": null, "summary": "Display money format and its filthy currencies, for all money lovers out there.", "version": "2014.7.13" }, "last_serial": 1156101, "releases": { "2014.7.12": [ { "comment_text": "", "digests": { "md5": "93e42d7b0a9549517766784e3ffd1e3a", "sha256": "4c783ecefb5e06f944f96a2008a89eb629513834cc97827f1fa998a62b7a9c17" }, "downloads": -1, "filename": "currencies-2014.7.12.tar.gz", "has_sig": false, "md5_digest": "93e42d7b0a9549517766784e3ffd1e3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18060, "upload_time": "2014-07-12T15:11:32", "url": "https://files.pythonhosted.org/packages/a3/61/47e44cf8f6808a09169a1cba691a54bdcc6f90351e24c473348244031db7/currencies-2014.7.12.tar.gz" } ], "2014.7.13": [ { "comment_text": "", "digests": { "md5": "a97c48a972502acd4892665bcaa4757d", "sha256": "49740f52050e4473757ef875b72747b82c3ed61b222d7370aaec5bd1615aa97b" }, "downloads": -1, "filename": "currencies-2014.7.13.tar.gz", "has_sig": false, "md5_digest": "a97c48a972502acd4892665bcaa4757d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19547, "upload_time": "2014-07-12T21:21:00", "url": "https://files.pythonhosted.org/packages/96/33/650b9ade8e18a9dff883282d74a6ad04db21c4a0f877a119d99eff3f67fa/currencies-2014.7.13.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a97c48a972502acd4892665bcaa4757d", "sha256": "49740f52050e4473757ef875b72747b82c3ed61b222d7370aaec5bd1615aa97b" }, "downloads": -1, "filename": "currencies-2014.7.13.tar.gz", "has_sig": false, "md5_digest": "a97c48a972502acd4892665bcaa4757d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19547, "upload_time": "2014-07-12T21:21:00", "url": "https://files.pythonhosted.org/packages/96/33/650b9ade8e18a9dff883282d74a6ad04db21c4a0f877a119d99eff3f67fa/currencies-2014.7.13.tar.gz" } ] }