/aiocurrencylayer

Python Wrapper for interacting with the CurrencyLayer API

Primary LanguagePythonMIT LicenseMIT

aiocurrencylayer

Python API for interacting with currencylayer. At the moment only the consumption of data is supported.

This module is not official, developed, supported or endorsed by currencylayer.

Installation

The module is available from the Python Package Index.

$ pip3 install aiocurrencylayer

On a Fedora-based system or on a CentOS/RHEL machine which has EPEL enabled.

$ sudo dnf -y install python3-aiocurrencylayer

For Nix or NixOS is pre-packed module available. The lastest release is usually present in the unstable channel.

$ nix-env -iA nixos.python3Packages.aiocurrencylayer

Usage

The file example.py contains an example about how to use this module.

Basically it's just a wrapper. Enter your currencylayer API key and the currency you want a quote for. Free subscriptions only support USD as source currency.

$ python3 example.py

Development

For development is recommended to use a venv.

$ python3 -m venv .
$ source bin/activate
$ python3 setup.py develop

License

python-currencylayer is licensed under MIT, for more details check LICENSE.