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

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.0.1
File Size Uploaded Provenance Actions
aiopvpc_ng-5.0.1.tar.gz 153.0 kB Without provenance Details for aiopvpc_ng-5.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 167.7 kB

Release files / aiopvpc_ng-5.0.1.tar.gz

Download URL aiopvpc_ng-5.0.1.tar.gz
Size 153.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c58c12fe46e4ad0b02a1c9f3f5d99a9bee26631a61679c1371e879a5801a34a1
BLAKE2b-256 checksum
How to use checksums
d8d93e2a67931d9e46342358c87dc7e606dff8c869c67ab7679f361e3c4f3350
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.0.1-py3-none-any.whl

Download URL aiopvpc_ng-5.0.1-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ef55a7ba69b88a591ac387ea7534cb0eabfaf7d220461be947c8077d42ebe4d
BLAKE2b-256 checksum
How to use checksums
275ab322a60c3de7fbbc16c021b1b66e01f3c760b9287a826c569710e8a2b7d8
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.0.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.

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