Skip to content

dannyp11/exchangerate-python-client

Folders and files

NameName
Last commit message
Last commit date
Apr 2, 2023
Apr 1, 2023
Oct 13, 2023
Oct 13, 2023
Apr 1, 2023
Apr 1, 2023
Apr 1, 2023
Apr 1, 2023
Apr 2, 2023
Apr 1, 2023
Apr 2, 2023
Apr 2, 2023
Apr 1, 2023
Apr 1, 2023

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"