Retrieval of Spanish Electricity hourly prices (PVPC)
Project description
aiopvpc
Simple aio library to download Spanish electricity hourly prices.
Made to support the pvpc_hourly_pricing HomeAssistant integration.
Install
Install with pip install aiopvpc or clone it to run tests or anything else.
Usage
from aiopvpc import PVPCData
pvpc_handler = PVPCData(tariff="discrimination")
start = datetime(2020, 3, 20, 22)
end = datetime(2020, 4, 30, 16)
prices_range: dict = await pvpc_handler.async_download_prices_for_range(start, end)
Check this example on a jupyter notebook, where the downloader is combined with pandas and matplotlib to plot the electricity prices:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiopvpc-2.0.2.tar.gz.
File metadata
- Download URL: aiopvpc-2.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.0 Linux/4.15.0-1077-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fdc5b42d54b85688613cca09abf87b12208f2cd13c09e40ccafb919515e5de6
|
|
| MD5 |
cbd442b2a75ea064ab7421735a4b62bf
|
|
| BLAKE2b-256 |
15db850e06c7055b12b4209991e279c831df5ca43c382f53f00313f6c372f1c2
|
File details
Details for the file aiopvpc-2.0.2-py3-none-any.whl.
File metadata
- Download URL: aiopvpc-2.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.0 Linux/4.15.0-1077-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23632d95f35330916a9a5fb6882f7dbfba94a96b35819acd04fa88ea1f952e77
|
|
| MD5 |
a2079508de5e6266521495d5fcb4fa22
|
|
| BLAKE2b-256 |
ebbe54da6cbf80d8ac1fca78b844ba7e1f5bb39398e4d820154e55bc9cc7db34
|