Python Currency Converter
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file py_currency_converter-1.2.0.tar.gz
.
File metadata
- Download URL: py_currency_converter-1.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1cfb1ff5b52baf100bf120ca9da48fba94ae32ff4487450d3e406e78b67e2075
|
|
MD5 |
319cc7daca0a425dec96c49d0d95bcf5
|
|
BLAKE2b-256 |
3f081c636e03947e49edfa03cf1ec32374c219affeef0cb279bb15644c294f4b
|
File details
Details for the file py_currency_converter-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: py_currency_converter-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3fd693ac192a1a855ddf9985eab9def3f39725e2f839c7959c858d86c16f7fe4
|
|
MD5 |
132ec1d8e3b4def18b4c9e48e66abc94
|
|
BLAKE2b-256 |
d9c7c72cebcf71b5c230e12f65474ba66f5ba8424d0d353287df76e5d9e08b85
|