{"id":13609866,"url":"https://github.com/Alir3z4/python-currencies","last_synced_at":"2025-04-12T22:31:58.310Z","repository":{"id":18314586,"uuid":"21493433","full_name":"Alir3z4/python-currencies","owner":"Alir3z4","description":"Display money format and its filthy currencies, for all money lovers out there.","archived":false,"fork":false,"pushed_at":"2021-08-12T18:16:43.000Z","size":59,"stargazers_count":74,"open_issues_count":5,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T06:02:06.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pypi.python.org/pypi/currencies","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alir3z4.png","metadata":{"files":{"readme":"README.rst","changelog":"ChangeLog.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-04T10:13:07.000Z","updated_at":"2025-01-27T19:47:01.000Z","dependencies_parsed_at":"2022-07-26T21:47:01.579Z","dependency_job_id":null,"html_url":"https://github.com/Alir3z4/python-currencies","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alir3z4%2Fpython-currencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alir3z4%2Fpython-currencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alir3z4%2Fpython-currencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alir3z4%2Fpython-currencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alir3z4","download_url":"https://codeload.github.com/Alir3z4/python-currencies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505916,"owners_count":21115354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:01:38.800Z","updated_at":"2025-04-12T22:31:58.096Z","avatar_url":"https://github.com/Alir3z4.png","language":"Python","readme":"==================\nPython Currencies\n==================\n\nDisplay money format and its filthy currencies, for all money lovers out there.\n\n.. image:: https://github.com/Alir3z4/python-currencies/workflows/Python%20Currencies%20Package/badge.svg\n   :alt: Build Status\n   :target: https://github.com/Alir3z4/python-currencies/actions\n\n\n.. image:: https://codecov.io/gh/Alir3z4/python-currencies/branch/master/graph/badge.svg?token=Ag25YMSuEX\n   :target: https://codecov.io/gh/Alir3z4/python-currencies\n\n\n\n\nInstallation\n------------\n``currencies`` is available on PyPi\n\nhttp://pypi.python.org/pypi/currencies\n\nSo easily install it by ``pip``\n\n::\n\n    $ pip install currencies\n\nOr by ``easy_install``\n\n::\n\n    $ easy_install currencies\n\nAnother way is by cloning ``currencies``'s `git repo \u003chttps://github.com/Alir3z4/python-currencies\u003e`_\n\n::\n\n    $ git clone git://github.com/Alir3z4/python-currencies.git\n\nThen install it by running:\n::\n\n    $ python setup.py install\n\n\nUsage\n-----\n\nDisplaying money format:\n\n\u003e\u003e\u003e from currencies import Currency\n\u003e\u003e\u003e\n\u003e\u003e\u003e currency = Currency('USD')\n\u003e\u003e\u003e currency.get_money_format(13)\n\u003e\u003e\u003e '$13'\n\u003e\u003e\u003e currency.get_money_format(13.99)\n\u003e\u003e\u003e '$13.99'\n\u003e\u003e\u003e currency.get_money_format('13,2313,33')\n\u003e\u003e\u003e '$13,2313,33'\n\u003e\u003e\u003e\n\u003e\u003e\u003e # Displaying with currency as well\n\u003e\u003e\u003e\n\u003e\u003e\u003e currency.get_money_with_currency_format(13)\n\u003e\u003e\u003e '$13 USD'\n\u003e\u003e\u003e currency.get_money_with_currency_format(13.99)\n\u003e\u003e\u003e '$13.99 USD'\n\u003e\u003e\u003e currency.get_money_with_currency_format('13,2313,33')\n\u003e\u003e\u003e '$13,2313,33 USD'\n\n\n\nTests\n-----\n\n``currencies`` is well tested, to run the test suite:\n\n::\n\n    $ PYTHONPATH=$PYTHONPATH:. python setup.py test\n\n\nAvailable currencies\n---------------------\n\n* AED\n* AFN\n* ALL\n* AMD\n* ANG\n* AOA\n* ARS\n* AUD\n* AWG\n* AZN\n* BAM\n* BBD\n* BDT\n* BGN\n* BHD\n* BND\n* BOB\n* BRL\n* BSD\n* BTN\n* BWP\n* BYR\n* BZD\n* CAD\n* CHF\n* CLP\n* CNY\n* COP\n* CRC\n* CZK\n* DKK\n* DOP\n* DZD\n* EGP\n* ETB\n* EUR\n* FJD\n* GBP\n* GEL\n* GHS\n* GMD\n* GTQ\n* GYD\n* HKD\n* HNL\n* HRK\n* HUF\n* IDR\n* ILS\n* INR\n* ISK\n* JEP\n* JMD\n* JOD\n* JPY\n* KES\n* KGS\n* KHR\n* KRW\n* KWD\n* KYD\n* KZT\n* LBP\n* LKR\n* LTL\n* LVL\n* MAD\n* MDL\n* MGA\n* MKD\n* MMK\n* MNT\n* MOP\n* MUR\n* MVR\n* MXN\n* MYR\n* MZN\n* NAD\n* NGN\n* NIO\n* NOK\n* NPR\n* NZD\n* OMR\n* PEN\n* PGK\n* PHP\n* PKR\n* PLN\n* PYG\n* QAR\n* RON\n* RSD\n* RUB\n* RWF\n* SAR\n* SCR\n* SEK\n* SGD\n* STD\n* SYP\n* THB\n* TND\n* TRY\n* TTD\n* TWD\n* TZS\n* UAH\n* UGX\n* USD\n* UYU\n* VEF\n* VND\n* VUV\n* WST\n* XAF\n* XBT\n* XCD\n* XOF\n* XPF\n* ZAR\n* ZMW\n\n\n----\n\n========== ======\nSource      https://github.com/Alir3z4/python-currencies\nWebsite     http://alir3z4.github.com/python-currencies\nIssues      https://github.com/Alir3z4/python-currencies/issues\nPyPi        http://pypi.python.org/pypi/currencies\nAuthor      Alireza Savand\nLicense     GNU GPL 3\n========== ======\n","funding_links":[],"categories":["E-commerce","资源列表","Python","电子商务","E-commerce [🔝](#readme)","Awesome Python"],"sub_categories":["电子商务","E-commerce"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlir3z4%2Fpython-currencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlir3z4%2Fpython-currencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlir3z4%2Fpython-currencies/lists"}