Skip to content

dannyp11/exchangerate-python-client

Repository files navigation

Introduction

This is unofficial exchangerate.host python client library.

exchangerate.host is a simple and lightweight free service for current and historical foreign exchange rates & crypto exchange rates.

Getting started

Installation

  • Using pip pip install exchangerate-client

Usage

  • Get all currency symbols
import exchangerate
client = exchangerate.ExchangerateClient()
print(client.symbols())
  • Get latest rates
import exchangerate
client = exchangerate.ExchangerateClient()
print(client.latest())

Development guide

Testing

This package uses tox to run testing automation against multiple python versions, to install and run tox, use

pip install tox
tox

Local development

  • Install to local env with pip install --editable .
  • Then this will work python -c "import exchangerate"