Skip to main content

PyPI Version Build Status License

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiopvpc-ng 5.1.0
File Size Uploaded Provenance Actions
aiopvpc_ng-5.1.0.tar.gz 155.4 kB Without provenance Details for aiopvpc_ng-5.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiopvpc-ng 5.1.0
File Interpreter ABI Platform Actions
aiopvpc_ng-5.1.0-py3-none-any.whl Python 3 none any Details for aiopvpc_ng-5.1.0-py3-none-any.whl

Total release size: 170.9 kB

Release files / aiopvpc_ng-5.1.0.tar.gz

Download URL aiopvpc_ng-5.1.0.tar.gz
Size 155.4 kB
Tags Source
SHA-256 checksum
How to use checksums
00f8a105fe43078260b4d2d04d58f2cfca2c2bf3bf7384b858eed5fb501fa6ac
BLAKE2b-256 checksum
How to use checksums
c4893dbc468fda19a20c4c174f3e3e685f8ef9b55dcfcaa9726acd9acf5234a9
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.0-py3-none-any.whl

Download URL aiopvpc_ng-5.1.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
666d8ad655435fbd2c7466fb4f1184a447e4ad5edada7022ef938d9eef4e1708
BLAKE2b-256 checksum
How to use checksums
800b8ead9baa8c80d7c99f302d3ed89fa491fffe8bef71ee10f93477c2ae3941
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.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page