Skip to main content

A python library to convert currency using Google Finance.

Project description

PyCurrency-Converter

https://travis-ci.org/SiddharthSaxena/PyCurrency-Converter.svg?branch=master https://img.shields.io/badge/pypi-v1.0-orange.svg?maxAge=3600&&style=flat https://img.shields.io/badge/version-v1.0-red.svg?maxAge=3600&&style=flat https://img.shields.io/badge/license-GPL--3.0-blue.svg?maxAge=3600&&style=flat

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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

PyCurrency-Converter-1.0-py2.py3.zip (21.5 kB view details)

Uploaded Source

PyCurrency-Converter-1.0-py2.py3.tar.gz (15.7 kB view details)

Uploaded Source

Built Distributions

PyCurrency_Converter-1.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

PyCurrency-Converter-1.0.py3.4.egg (5.6 kB view details)

Uploaded Source

PyCurrency-Converter-1.0.py2.7.egg (5.5 kB view details)

Uploaded Source

File details

Details for the file PyCurrency-Converter-1.0-py2.py3.zip.

File metadata

File hashes

Hashes for PyCurrency-Converter-1.0-py2.py3.zip
Algorithm Hash digest
SHA256 e6ee877799258df66fc3c3f5df9a10a2b7d70e5c9c5f2f49195f3fbd4e5ae622
MD5 7ded576523854b5a36a0068264d72cdf
BLAKE2b-256 765cedba2c55eda097968e4930c2b8f1f2e6b2e2be510a825a83c86025dfee60

See more details on using hashes here.

File details

Details for the file PyCurrency-Converter-1.0-py2.py3.tar.gz.

File metadata

File hashes

Hashes for PyCurrency-Converter-1.0-py2.py3.tar.gz
Algorithm Hash digest
SHA256 06683fe465c34c8466d69c66ad92e5c82855296aae4896806e20fabebbfd5aea
MD5 b1b4efc5efdacb4b28dbfece2127d440
BLAKE2b-256 72c72dfa8e6680194fa656235a40b12287b317859bb0f87919f69bdbd0d932e2

See more details on using hashes here.

File details

Details for the file PyCurrency_Converter-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PyCurrency_Converter-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 92ccf50df6510b3d234e16871b3db79be08fdb19b715111f00a2947b195a30e3
MD5 bf8c254d85a6f66a808c86acc1d1fc8f
BLAKE2b-256 06ea35c7f762824f6a0b62d4c423d2f5da799b1ec33ce20babceb95e2ca6e84b

See more details on using hashes here.

File details

Details for the file PyCurrency-Converter-1.0.py3.4.egg.

File metadata

File hashes

Hashes for PyCurrency-Converter-1.0.py3.4.egg
Algorithm Hash digest
SHA256 1150402018a448449c63a3ec25f9a7ab6149c0fd903c403bc2277b5fb7294dee
MD5 fdc07145a31ced3a11aff57231d7dd5a
BLAKE2b-256 f92b40652aa8495449cbf877765130d5609a8dfdf82226bdf471d92c180c94fe

See more details on using hashes here.

File details

Details for the file PyCurrency-Converter-1.0.py2.7.egg.

File metadata

File hashes

Hashes for PyCurrency-Converter-1.0.py2.7.egg
Algorithm Hash digest
SHA256 d31bdf8bc838191ae44dccfdf02062588dc26787e31e7ab84af57c79eaec1f19
MD5 f8f393b75cbbc8ae7b2e1a4fad98eb99
BLAKE2b-256 6d964903a7b62f039df1afd7cbc0ba2189c4d074dc9e8ea79e48c98f59a10a5b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page