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
# Converted without comma like 70000.00
convert('usd', 'inr', 1000)
# Converted amount with comma like 70,000.00
convert('usd', 'inr', 1000)
This will return a JSON response like below
{
"converted": true,
"from": "USD",
"to": "INR",
"amount": "74876.00"
}
{
"converted": true,
"from": "USD",
"to": "INR",
"amount": "74,876.00"
}
Response description
-
converted: Boolean indicating whether the amount is converted or not, if this is
falsethan it means the
currency code is not valid and the amount is not converted and it will be equal to0. -
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.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google_currency-1.0.10.tar.gz | 5.8 kB | Without provenance | Details for google_currency-1.0.10.tar.gz |
Release files / google_currency-1.0.10.tar.gz
| Download URL | google_currency-1.0.10.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6c7488fc8fa0b24c9c9c27487b4f061e9a78596dbb45b4bbf1cf0f4174a73ba
|
|
BLAKE2b-256 checksum How to use checksums |
d00b49ebba0bd4f798d99680fda4180cb1d9ec92c26e5b5cc7f4f1c27e5e9efc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.9
|
Security for google-currency 1.0.10
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.