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

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.2
File Size Uploaded Provenance Actions
aiopvpc_ng-5.1.2.tar.gz 155.6 kB With provenance Details for aiopvpc_ng-5.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 171.1 kB

Release files / aiopvpc_ng-5.1.2.tar.gz

Download URL aiopvpc_ng-5.1.2.tar.gz
Size 155.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7bc6d4149e90f71882d7767a5335e582a2b101e71e2942b1fbf59fe16bd5b9d2
BLAKE2b-256 checksum
How to use checksums
0feb1480579b2fff22c52c13bb878436f330248bbf34f44b1409ee64fdd6c1f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / aiopvpc_ng-5.1.2-py3-none-any.whl

Download URL aiopvpc_ng-5.1.2-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c50d644bfb9c293ceb35130cbebcb2991b92144383fd9024f3f8c41be2fb2826
BLAKE2b-256 checksum
How to use checksums
a4c1ed8a086923dd007cb9e518b39b3fd9545c68a9200bce6dfd4405c181529f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for aiopvpc-ng 5.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiopvpc_ng-5.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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