skip to navigation
skip to content

PyCurrency-Converter 1.0

A python library to convert currency using Google Finance.

PyCurrency-Converter

A python library to convert currency using Google Finance.

Installation

For Python 2 users:

>>> pip install PyCurrency-Converter

For Python 3 users:

>>> pip3 install PyCurrency-Converter

Alternatively you can install git clone this repository and install it via setup.py.

>>> git clone https://github.com/SiddharthSaxena/PyCurrency-Converter.git
>>> python setup.py install

Dependencies

BeautifulSoup

>>> sudo pip install bs4

urllib

>>> sudo pip install urllib

Usage

Import

>>> import PyCurrency_Converter

Get currency codes

>>> import PyCurrency_Converter
>>> PyCurrency_Converter.codes()
United Arab Emirates Dirham (AED)
Afghan Afghani (AFN)
Albanian Lek (ALL)
Armenian Dram (AMD)
Netherlands Antillean Guilder (ANG)
Angolan Kwanza (AOA)
Argentine Peso (ARS)
Australian Dollar (A$)
Aruban Florin (AWG)
Azerbaijani Manat (AZN)
Bosnia-Herzegovina Convertible Mark (BAM)
Barbadian Dollar (BBD)
Bangladeshi Taka (BDT)
Bulgarian Lev (BGN)
Bahraini Dinar (BHD)
Burundian Franc (BIF)
Bermudan Dollar (BMD)
Brunei Dollar (BND)
Bolivian Boliviano (BOB)
Brazilian Real (R$)
Bahamian Dollar (BSD)
Bitcoin (฿)
Bhutanese Ngultrum (BTN)
Botswanan Pula (BWP)
BYN (BYN)
Belarusian Ruble (BYR)
Belize Dollar (BZD)
Canadian Dollar (CA$)
Congolese Franc (CDF)
Swiss Franc (CHF)
Chilean Unit of Account (UF) (CLF)
Chilean Peso (CLP)
CNH (CNH)
Chinese Yuan (CNĽ)
Colombian Peso (COP)
Costa Rican Colón (CRC)
Cuban Peso (CUP)
Cape Verdean Escudo (CVE)
Czech Republic Koruna (CZK)
German Mark (DEM)
Djiboutian Franc (DJF)
Danish Krone (DKK)
Dominican Peso (DOP)
Algerian Dinar (DZD)
Egyptian Pound (EGP)
Eritrean Nakfa (ERN)
Ethiopian Birr (ETB)
Euro (€)
Finnish Markka (FIM)
Fijian Dollar (FJD)
Falkland Islands Pound (FKP)
French Franc (FRF)
British Pound (Ł)
Georgian Lari (GEL)
Ghanaian Cedi (GHS)
Gibraltar Pound (GIP)
Gambian Dalasi (GMD)
Guinean Franc (GNF)
Guatemalan Quetzal (GTQ)
Guyanaese Dollar (GYD)
Hong Kong Dollar (HK$)
Honduran Lempira (HNL)
Croatian Kuna (HRK)
Haitian Gourde (HTG)
Hungarian Forint (HUF)
Indonesian Rupiah (IDR)
Irish Pound (IEP)
Israeli New Sheqel (₪)
Indian Rupee (₹)
Iraqi Dinar (IQD)
Iranian Rial (IRR)
Icelandic Króna (ISK)
Italian Lira (ITL)
Jamaican Dollar (JMD)
Jordanian Dinar (JOD)
Japanese Yen (Ľ)
Kenyan Shilling (KES)
Kyrgystani Som (KGS)
Cambodian Riel (KHR)
Comorian Franc (KMF)
North Korean Won (KPW)
South Korean Won (₩)
Kuwaiti Dinar (KWD)
Cayman Islands Dollar (KYD)
Kazakhstani Tenge (KZT)
Laotian Kip (LAK)
Lebanese Pound (LBP)
Sri Lankan Rupee (LKR)
Liberian Dollar (LRD)
Lesotho Loti (LSL)
Lithuanian Litas (LTL)
Latvian Lats (LVL)
Libyan Dinar (LYD)
Moroccan Dirham (MAD)
Moldovan Leu (MDL)
Malagasy Ariary (MGA)
Macedonian Denar (MKD)
Myanmar Kyat (MMK)
Mongolian Tugrik (MNT)
Macanese Pataca (MOP)
Mauritanian Ouguiya (MRO)
Mauritian Rupee (MUR) .......

Get exchange rate

>>> import PyCurrency_Converter
>>> PyCurrency_Converter.convert(1, 'USD', 'INR')
68.8122 INR

General Format

>>> import PyCurrency_Converter
>>> PyCurrency_Converter.convert(amount, from, to)

License

GNU General Public License v3 (GPLv3). See the LICENSE file for full details.

Visit http://siddharthsaxena.weebly.com/pycurrency-converter.html for more details.

 
File Type Py Version Uploaded on Size
PyCurrency-Converter-1.0-py2.py3.tar.gz (md5)
Source Code (tar.gz)
Source 2016-11-23 15KB
PyCurrency-Converter-1.0-py2.py3.zip (md5)
Source Code (zip)
Source 2016-11-23 21KB
PyCurrency-Converter-1.0.py2.7.egg (md5)
Egg for Python 2.7
Python Egg 2.7 2016-11-24 5KB
PyCurrency-Converter-1.0.py3.4.egg (md5)
Egg for Python 3.4
Python Egg 3.4 2016-11-24 5KB
PyCurrency_Converter-1.0-py2.py3-none-any.whl (md5)
Python Wheel
Python Wheel any 2016-11-24 3KB