Skip to main content

Retrieval of Spanish Electricity hourly prices (PVPC)

Project description

PyPI Version pre-commit.ci Status Build Status

esios-api

This is a fork of the, now abandoned, aiopvpc library from azogue. Plese, take note that I expect to improve and do a deep change on this library in the near future.

Simple aio library to download Spanish electricity hourly voluntary prices for the small consumer (PVPC initials in Spanish). More info in REE official page.

Made to support the pvpc_hourly_pricing HomeAssistant integration.

Buy Me A Coffee donate button

Or to the original library developer

Install

Install with pip install esios-api or clone it to run tests or anything else.

Usage

import aiohttp
from datetime import datetime, timezone
from esios_api 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

esios_api-4.4.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

esios_api-4.4.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file esios_api-4.4.0.tar.gz.

File metadata

  • Download URL: esios_api-4.4.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for esios_api-4.4.0.tar.gz
Algorithm Hash digest
SHA256 b00b11ce876bdc9672bc3d58c23d0b8f7d59d4226d80ba4c92472641be107b99
MD5 48f405ede8ff378689a6fa5de5880b0a
BLAKE2b-256 171b5a8146192f02029e3abebe294afa53e95edf10d933accf22337eaa763ed9

See more details on using hashes here.

Provenance

The following attestation bundles were made for esios_api-4.4.0.tar.gz:

Publisher: main.yaml on chiro79/esios-api

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

File details

Details for the file esios_api-4.4.0-py3-none-any.whl.

File metadata

  • Download URL: esios_api-4.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for esios_api-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc08ce4cf8efc830bde01c594cd2996f485f4b26c6fef6e4a4327119f369db0
MD5 1fc13ce5c1579ce8e4524482e9fa3914
BLAKE2b-256 4cf88635fbe11afc2c32868ed4f3675cad0157ab7ad2fe15f489c942a5dfafd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for esios_api-4.4.0-py3-none-any.whl:

Publisher: main.yaml on chiro79/esios-api

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