Skip to main content

Python wrapper on Exchange Rates API

Project description

pyexchangeratesapi

This is an unofficial Python wrapper for free ExchangeRatesAPI, which provides exchange rate lookups courtesy of the Central European Bank. It features a number of useful functions and can be installed easily using pip. Additionally wrapper is providing CLI interface.

Test PyPI version GitHub PyPI - Downloads

codecov Known Vulnerabilities CodeFactor

Installation

pip install exchangeratesapi

Python usage

from exchangeratesapi import rates

latest = rates.latest()
latest["base"]
latest["date"]

latest = rates.Rates()
latest.base
latest.date

history = rates.history(start_at="2020-01-01", end_at="2020-12-31", base="PLN")
history["base"]
history["start_at"]
history["end_at"]

history = rates.HistoryRates(start_at="2020-01-01", end_at="2020-12-31", base="PLN")
history.base
history.start_at
history.end_at

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

exchangeratesapi-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

exchangeratesapi-0.1.0-py2.py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 2 Python 3

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