aiopvpc-ng
Next-generation async Python library (>=3.11) to download Spanish electricity prices (PVPC 2.0TD, surplus/injection, MAG, OMIE, market adjustment, and indexed tariffs) from Red Eléctrica de España's ESIOS API (api.esios.ree.es).
aiopvpc-ng is an actively maintained, drop-in successor to azogue/aiopvpc, keeping the aiopvpc import namespace for full compatibility with the pvpc_hourly_pricing Home Assistant integration and standalone Python tools.
Install
Requires Python 3.11 or newer.
Install with pip install aiopvpc-ng (or uv add aiopvpc-ng).
For local development and testing with uv:
uv sync --locked
uv run pytest
Usage
from datetime import UTC, datetime
import aiohttp
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.now(UTC)
)
print(esios_data.sensors["PVPC"])
Attribution
Originally created by Eugenio Panadero (azogue/aiopvpc). Maintained as aiopvpc-ng under the MIT License.
Metadata
Release files for aiopvpc-ng 5.1.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 | Provenance | Actions |
|---|---|---|---|---|
| aiopvpc_ng-5.1.1.tar.gz | 155.5 kB | Without provenance | Details for aiopvpc_ng-5.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiopvpc_ng-5.1.1-py3-none-any.whl | Python 3 | none | any | Details for aiopvpc_ng-5.1.1-py3-none-any.whl |
Total release size: 171.0 kB
Release files / aiopvpc_ng-5.1.1.tar.gz
| Download URL | aiopvpc_ng-5.1.1.tar.gz |
|---|---|
| Size | 155.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f3ea6bf80ac5a687c4451dc5e8cf0585ad036c8ca31c194bc9266280f931d27
|
|
BLAKE2b-256 checksum How to use checksums |
c628f190d3c8c3a1c3feafb8385f4d776c9a286d484d876f2d032e4523136cf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / aiopvpc_ng-5.1.1-py3-none-any.whl
| Download URL | aiopvpc_ng-5.1.1-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87d98da21359d28f9d2b35a9cba67fec90ae4d9c7e8bff1f1b3d883487f1ea19
|
|
BLAKE2b-256 checksum How to use checksums |
f1bf05b8fde89919c46d324641798fb83c97c0be63687a4f948a6116fb38ba63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for aiopvpc-ng 5.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.