Easy Exchange Rates
A python package for retrieving currency exchange data from https://data.ecb.europa.eu/ to a pandas dataframe.
Usage
from easy_exchange_rates import API
api = API()
df = api.get_exchange_rates(
base_currency="EUR",
start_date="2024-03-12",
end_date="2024-04-21",
targets=["USD","CAD"]
)
print(df.head(5))
>>>
CAD USD
TIME_PERIOD
2024-03-12 1.4739 1.0916
2024-03-13 1.4756 1.0939
2024-03-14 1.4725 1.0925
2024-03-15 1.4731 1.0892
2024-03-18 1.4745 1.0892
Testing
python3 -m unittest discover -s tests
Release files for easy-exchange-rates 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easy_exchange_rates-0.2.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easy_exchange_rates-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / easy_exchange_rates-0.2.0.tar.gz
| Download URL | easy_exchange_rates-0.2.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30d1e20f5c75c8303ba46e3cdcd18ba9b6827b99c31a0c08877b4898ee6f89b7
|
|
BLAKE2b-256 checksum How to use checksums |
dafeac239b8bb92391bb7ebdc2e4eefb5eddb5c143df298ce0d555b95f862ba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / easy_exchange_rates-0.2.0-py3-none-any.whl
| Download URL | easy_exchange_rates-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99ee5ded14ae53ba03c0b33606cd5799da9b229c25c51fb1a1295de36529815d
|
|
BLAKE2b-256 checksum How to use checksums |
2fb2c52352d2ab38991b820c59251928af2f36d0cc34c719bc237991d5d3e220
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|