
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Display money format and its filthy currencies, for all money lovers out there.
Display money format and its filthy currencies, for all money lovers out there.
.. image:: https://github.com/Alir3z4/python-currencies/workflows/Python%20Currencies%20Package/badge.svg :alt: Build Status :target: https://github.com/Alir3z4/python-currencies/actions
.. image:: https://codecov.io/gh/Alir3z4/python-currencies/branch/master/graph/badge.svg?token=Ag25YMSuEX :target: https://codecov.io/gh/Alir3z4/python-currencies
currencies
is available on PyPi
http://pypi.python.org/pypi/currencies
So easily install it by pip
::
$ pip install currencies
Or by easy_install
::
$ easy_install currencies
Another way is by cloning currencies
's git repo <https://github.com/Alir3z4/python-currencies>
_
::
$ git clone git://github.com/Alir3z4/python-currencies.git
Then install it by running: ::
$ python setup.py install
Displaying money format:
from currencies import Currency
currency = Currency('USD') currency.get_money_format(13) '$13' currency.get_money_format(13.99) '$13.99' currency.get_money_format('13,2313,33') '$13,2313,33'
Displaying with currency as well
currency.get_money_with_currency_format(13) '$13 USD' currency.get_money_with_currency_format(13.99) '$13.99 USD' currency.get_money_with_currency_format('13,2313,33') '$13,2313,33 USD'
currencies
is well tested, to run the test suite:
::
$ PYTHONPATH=$PYTHONPATH:. python setup.py test
========== ====== Source https://github.com/Alir3z4/python-currencies Website http://alir3z4.github.com/python-currencies Issues https://github.com/Alir3z4/python-currencies/issues PyPi http://pypi.python.org/pypi/currencies Author Alireza Savand License GNU GPL 3 ========== ======
FAQs
Display money format and its filthy currencies, for all money lovers out there.
We found that currencies demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.