Python Currency Converter
Project description
.. image:: ./images/currency_converter_logo.jpeg
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|
.. |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
Hashes for py_currency_converter-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8647998f63af96420a78b7455b7be2a18e959f66c5d9e019e153386c36a2eba2 |
|
MD5 | 97754dd0e61847fadd7d81aa6314dd93 |
|
BLAKE2b-256 | 2e5b98fdd3151e33177b2e5479af1b15aaf946e5eabbab3b954c7c57a84ca0f7 |
Hashes for py_currency_converter-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c012f57006d09df3c3b10d9d86b3fbe7c99a2cdbc4a31759b8af4baa7d0868f8 |
|
MD5 | 1455513123ec285cdca138e58c25e128 |
|
BLAKE2b-256 | 73ed8569ef1376bbf33346d066ba8841b419c6e0363c96612320a70b08ca3234 |