Skip to main content

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

Installation

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

  • pip install google-currency

Usage

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.

Metadata

Release files for google-currency 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for google-currency 1.0.7
File Interpreter ABI Platform Actions
google_currency-1.0.7-py3-none-any.whl Python 3 none any Details for google_currency-1.0.7-py3-none-any.whl

Release files / google_currency-1.0.7-py3-none-any.whl

Download URL google_currency-1.0.7-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f3161ecf08a603c09bed961299878aa15a7fe65222f19d08ff260bc4c15a31e
BLAKE2b-256 checksum
How to use checksums
5f331f9b9fa244206c41395fe5a90198bc73010ccd11612de8cd23d77f2f9777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

Security for google-currency 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page