Skip to main content

Python Currency Converter

Project description

.. image::

This is a currency converter that uses API.

Python Currency Converter

This package help in converting converting the any currency amount to any other(s) currency. This consumes the free REST API.


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://>`__

MIT License

.. code:: rst

    |MIT license|

    .. image::

Please submit an issue if you encounter a bug and please email any questions or requests to

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

py_currency_converter-1.2.0.tar.gz (3.1 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page