Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a package that maintains a list all currencies with symbols?

Is there a python package that provides list of all (or fairly complete) currencies with the symbols (like "$" for USD).

There are excellent pycountry, py-moneyed and ccy but these do not have symbols.

like image 682
Shekhar Avatar asked Aug 30 '11 19:08

Shekhar


People also ask

Do all currencies have a symbol?

Every world currency has an assigned code, used on currency exchange markets, and a currency code symbol which is typically used when pricing goods in a store, or dishes in a restaurant for example.

How many currency symbols are in the world?

How many currency symbols are there in the world? There are 180 currencies in the world circulating 197 countries. Eurochange sell over 70 of these currencies.

What does a$ mean in money?

For other dollar currencies, '$' should be prefixed with the country abbreviation. Full version. Abbreviation. Australian dollars. A$


1 Answers

I created Forex-python package which maintains all latest Currency code and its sign.

>>> from forex_python.converter import CurrencyCodes
>>> c = CurrencyCodes()
>>> print c.get_symbol('GBP')
£

And you can convert amount from one currency to other.

>>> from forex_python.converter import CurrencyRates
>>> c = CurrencyRates()
>>> c.convert('USD', 'INR', 10)
674.73
like image 52
Ravi Kumar Avatar answered Sep 20 '22 07:09

Ravi Kumar