Skip to main content

A simple library to convert the currency of one country to other, it supports 153 countries' currency

Project description

Google currency

Disclaimer: This package fetch the result from Google using web scrapping. Owner will not be responsible for any misuse of this package. This is solely for the purpose of learning.

A very simple currency converter.

It can convert the currency of 153 codes.

Since the results are fetched from Google directly, you can trust the results :-D


To install the library run the below command (This will also install requests)

  • pip install google-currency


from google_currency import convert  

convert('usd', 'inr', 1)  

This will return a JSON response like below

	 "converted": true, 
	 "from": "USD", 
	 "to": "INR", 
	 "amount": "68.56"

Response description

  • converted: Boolean indicating whether the amount is converted or not, if this is false than it means the
    currency code is not valid and the amount is not converted and it will be equal to 0.

  • amount: Converted amount

  • from: Currency code from which the amount is converted.

  • to: Currency code to which the amount is converted.

Project details

Download files

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

Files for google-currency, version 1.0.9
Filename, size File type Python version Upload date Hashes
Filename, size google_currency-1.0.9-py3-none-any.whl (6.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page