Retrieval of Spanish Electricity hourly prices (PVPC)
Project description
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b00b11ce876bdc9672bc3d58c23d0b8f7d59d4226d80ba4c92472641be107b99
|
|
| MD5 |
48f405ede8ff378689a6fa5de5880b0a
|
|
| BLAKE2b-256 |
171b5a8146192f02029e3abebe294afa53e95edf10d933accf22337eaa763ed9
|
Provenance
The following attestation bundles were made for esios_api-4.4.0.tar.gz:
Publisher:
main.yaml on chiro79/esios-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esios_api-4.4.0.tar.gz -
Subject digest:
b00b11ce876bdc9672bc3d58c23d0b8f7d59d4226d80ba4c92472641be107b99 - Sigstore transparency entry: 1588158132
- Sigstore integration time:
-
Permalink:
chiro79/esios-api@419054ba1fa7404fc44807f4c1c90273a1674017 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/chiro79
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yaml@419054ba1fa7404fc44807f4c1c90273a1674017 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bc08ce4cf8efc830bde01c594cd2996f485f4b26c6fef6e4a4327119f369db0
|
|
| MD5 |
1fc13ce5c1579ce8e4524482e9fa3914
|
|
| BLAKE2b-256 |
4cf88635fbe11afc2c32868ed4f3675cad0157ab7ad2fe15f489c942a5dfafd6
|
Provenance
The following attestation bundles were made for esios_api-4.4.0-py3-none-any.whl:
Publisher:
main.yaml on chiro79/esios-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esios_api-4.4.0-py3-none-any.whl -
Subject digest:
0bc08ce4cf8efc830bde01c594cd2996f485f4b26c6fef6e4a4327119f369db0 - Sigstore transparency entry: 1588158148
- Sigstore integration time:
-
Permalink:
chiro79/esios-api@419054ba1fa7404fc44807f4c1c90273a1674017 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/chiro79
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yaml@419054ba1fa7404fc44807f4c1c90273a1674017 -
Trigger Event:
push
-
Statement type: