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
import aiohttp
from datetime import datetime
from aiopvpc import PVPCData
async with aiohttp.ClientSession() as session:
pvpc_handler = PVPCData(session=session, tariff="2.0TD")
esios_data = await pvpc_handler.async_update_all(
current_data=None, now=datetime.utcnow()
)
print(esios_data.sensors["PVPC"])
Metadata
Release files for aiopvpc 4.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiopvpc-4.3.1.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiopvpc-4.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / aiopvpc-4.3.1.tar.gz
| Download URL | aiopvpc-4.3.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6e8f4ad03ca8a3fb2cf77e00f26549185ea9e87b491d573c1f44d603d63d1d1
|
|
BLAKE2b-256 checksum How to use checksums |
09c1ebb7977ae8c1e9fcd7520a14fd1e82fc9fbe4c691c62cf114f57a1bd3439
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / aiopvpc-4.3.1-py3-none-any.whl
| Download URL | aiopvpc-4.3.1-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65468e5b526c941ec381589d6594daf1b3af407ad36a74f5e64a0cd763529e87
|
|
BLAKE2b-256 checksum How to use checksums |
4d1c7119801ae8a51ea44c17a8421d5f575732e7c248dc4d40dfcf08d46500a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|