Skip to main content

async downloader for Spanish Electricity hourly prices (PVPC). Fork from aiopvpc due to inactivity of the original project

Project description

PyPI Version pre-commit.ci Status Build Status

aiopvpc-ng

Fork of azogue/aiopvpc due to upstream inactivity.

Simple aio library to download Spanish electricity hourly prices.

Made to support the pvpc_hourly_pricing HomeAssistant integration.

Install

Install with pip install aiopvpc-ng or clone it to run tests or anything else.

Usage

import aiohttp
from datetime import datetime, timezone
from aiopvpc_ng 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(timezone.utc)
    )
print(esios_data.sensors["PVPC"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiopvpc_ng-5.0.0.tar.gz (111.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiopvpc_ng-5.0.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file aiopvpc_ng-5.0.0.tar.gz.

File metadata

  • Download URL: aiopvpc_ng-5.0.0.tar.gz
  • Upload date:
  • Size: 111.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiopvpc_ng-5.0.0.tar.gz
Algorithm Hash digest
SHA256 a8609f877012f3347799defd5719b304a0034ca1060cae93dd0cc829cdd07333
MD5 13e4385beddd57ca5f87a65aad99b268
BLAKE2b-256 31283863281785b53e0b9d0cbc5fcd235a841af3aea5a1d6b55fd296eff78e13

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopvpc_ng-5.0.0.tar.gz:

Publisher: main.yml on zeehio/aiopvpc-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiopvpc_ng-5.0.0-py3-none-any.whl.

File metadata

  • Download URL: aiopvpc_ng-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiopvpc_ng-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da942304c3278d3ce8d046ccd6f5655907d964754d6c4efb42607e13340468fc
MD5 82d0f90acf732c5cba5ac3d8ba879ba7
BLAKE2b-256 f96b72b57775265f53b34e4db57b7c2518dc14e71d1293a21d3bd734afc5f0fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopvpc_ng-5.0.0-py3-none-any.whl:

Publisher: main.yml on zeehio/aiopvpc-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page