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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file exchangeratesapi-0.1.0.tar.gz
.
File metadata
- Download URL: exchangeratesapi-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05fd32cc8116200ea9697672026e3e3410cf0de59b988fc0886f243f81084416 |
|
MD5 | 08b62080210cf0c470abfcd92d224104 |
|
BLAKE2b-256 | 8768a51ae582f7191e4ff0ae563fe5302d6472f9b3743dec4405490a95be8e3e |
File details
Details for the file exchangeratesapi-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: exchangeratesapi-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215b32efdf6ce3232212bac4e8077d7673fcf60e4e37c5ae03d5ca4d374864d3 |
|
MD5 | 3960ef6ca95a31ec449621195c83640a |
|
BLAKE2b-256 | ed3ca083b70c18e71d0b0360a53d603fcd808271ea4d574b013cc6a4d9ef6f91 |