Skip to main content

Retrieval of Spanish Electricity hourly prices (PVPC)

Project description

PyPI Version pre-commit.ci Status Build Status

aiopvpc

Simple aio library to download Spanish electricity hourly prices.

Made to support the pvpc_hourly_pricing HomeAssistant integration.

Buy Me A Coffee donate button

Install

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

Usage

import aiohttp
from datetime import datetime
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.utcnow()
    )
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-4.3.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

aiopvpc-4.3.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file aiopvpc-4.3.1.tar.gz.

File metadata

  • Download URL: aiopvpc-4.3.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for aiopvpc-4.3.1.tar.gz
Algorithm Hash digest
SHA256 b6e8f4ad03ca8a3fb2cf77e00f26549185ea9e87b491d573c1f44d603d63d1d1
MD5 0cc514cfcecf8d3aca4a8b5c12d352c4
BLAKE2b-256 09c1ebb7977ae8c1e9fcd7520a14fd1e82fc9fbe4c691c62cf114f57a1bd3439

See more details on using hashes here.

File details

Details for the file aiopvpc-4.3.1-py3-none-any.whl.

File metadata

  • Download URL: aiopvpc-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for aiopvpc-4.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65468e5b526c941ec381589d6594daf1b3af407ad36a74f5e64a0cd763529e87
MD5 5ec73c149907b33ee0928d7370ae4f70
BLAKE2b-256 4d1c7119801ae8a51ea44c17a8421d5f575732e7c248dc4d40dfcf08d46500a7

See more details on using hashes here.

Supported by

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