This is a currency converter that uses https://www.exchangerate-api.com/ API.
Python Currency Converter
This package help in converting converting the any currency amount to any other(s) currency. This consumes the https://www.exchangerate-api.com/ free REST API.
Installation
You can install directly after cloning:
use the Python package:
.. code-block:: bash
$ pip install --user py_currency_converter
Command line tool
After installation, you should have py_currency_converter in your $PATH:
.. code-block:: bash
$ currency_converter 1 USD --to SGD 1.00 USD = 1.364903 SGD on 2020-02-02
Python API
Create once the currency converter object:
.. code-block:: python
>>> from py_currency_converter import convert
Convert from SGD to USD, EUR using the last available rate:
.. code-block:: python
>>> convert(base='USD', amount=1, to=['SGD', 'EUR'])
{'SGD': 1.364903, 'EUR': 0.904506}
Default base currency is USD:
.. code-block:: python
>>> convert(amount=1, to=['SGD', 'EUR'])
{'SGD': 1.364903, 'EUR': 0.904506}
supported currencies
Please visit the below link for refering supported currencies:
`Supported currencies <ttps://www.exchangerate-api.com/docs/supported-currencies>`__
License
~~~~~~~
MIT License
~~~~~~~~~~~
.. code:: rst
|MIT license|
.. image:: https://img.shields.io/badge/License-MIT-blue.svg
Contact
~~~~~~~
Please submit an issue if you encounter a bug and please email any questions or requests to catchmaurya@gmail.com
Metadata
Release files for py-currency-converter 1.2.0
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 |
|---|---|---|---|---|
| py_currency_converter-1.2.0.tar.gz | 3.1 kB | Without provenance | Details for py_currency_converter-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_currency_converter-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for py_currency_converter-1.2.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / py_currency_converter-1.2.0.tar.gz
| Download URL | py_currency_converter-1.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cfb1ff5b52baf100bf120ca9da48fba94ae32ff4487450d3e406e78b67e2075
|
|
BLAKE2b-256 checksum How to use checksums |
3f081c636e03947e49edfa03cf1ec32374c219affeef0cb279bb15644c294f4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5
|
Release files / py_currency_converter-1.2.0-py3-none-any.whl
| Download URL | py_currency_converter-1.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fd693ac192a1a855ddf9985eab9def3f39725e2f839c7959c858d86c16f7fe4
|
|
BLAKE2b-256 checksum How to use checksums |
d9c7c72cebcf71b5c230e12f65474ba66f5ba8424d0d353287df76e5d9e08b85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5
|
Security for py-currency-converter 1.2.0
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.