A Python wrapper for the ESIOS API (Spanish electricity market)
Project description
python-esios
A Python library and CLI to query the Spanish electricity market API (ESIOS/REE).
Download indicators (prices, generation, demand), archives (I90 settlement files), and more.
Install
pip install python-esios
Configure your token
Request a personal token from REE, then:
esios config set token YOUR_TOKEN
This stores the token in ~/.config/esios/config.toml. Alternatively, set the ESIOS_API_KEY environment variable.
CLI usage
# Search indicators
esios indicators search "precio"
# Download historical data
esios indicators history 600 --start 2025-01-01 --end 2025-01-31
# Export to CSV
esios indicators history 600 -s 2025-01-01 -e 2025-01-31 --format csv --output prices.csv
# List archives
esios archives list
# Download I90 settlement files
esios archives download 1 --start 2025-01-01 --end 2025-01-31
# Cache status
esios cache status
Python usage
from esios import ESIOSClient
client = ESIOSClient()
# Get indicator data as DataFrame
handle = client.indicators.get(600) # PVPC price
df = handle.historical("2025-01-01", "2025-01-31")
# Search indicators
results = client.indicators.search("precio")
# Download archives
client.archives.download(1, start="2025-01-01", end="2025-01-31", output_dir="./data")
Common indicators
| ID | Name | Description |
|---|---|---|
| 600 | PVPC | Voluntary price for small consumers |
| 1001 | Day-ahead price | OMIE spot market price |
| 10033 | Demand | Real-time electricity demand |
| 10034 | Wind generation | Real-time wind generation |
| 10035 | Solar PV generation | Real-time solar generation |
License
GPL-3.0
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 python_esios-2.4.0.tar.gz.
File metadata
- Download URL: python_esios-2.4.0.tar.gz
- Upload date:
- Size: 652.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ec5c1fb4c2e0fc88c4baf81c9287861cd5f6bee101b317a57a914c1f29a3528
|
|
| MD5 |
c6059247ce46eeb7ded60076e2b76831
|
|
| BLAKE2b-256 |
4fb51cd11b861b5ea4da8861f8fa041b139a19f12d6f0e71278f9e0256b7358a
|
Provenance
The following attestation bundles were made for python_esios-2.4.0.tar.gz:
Publisher:
release-please.yml on datons/python-esios
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_esios-2.4.0.tar.gz -
Subject digest:
7ec5c1fb4c2e0fc88c4baf81c9287861cd5f6bee101b317a57a914c1f29a3528 - Sigstore transparency entry: 1167319143
- Sigstore integration time:
-
Permalink:
datons/python-esios@250a3e4ee73987a137caf2b7a4d1883fc25b3bd4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/datons
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@250a3e4ee73987a137caf2b7a4d1883fc25b3bd4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_esios-2.4.0-py3-none-any.whl.
File metadata
- Download URL: python_esios-2.4.0-py3-none-any.whl
- Upload date:
- Size: 68.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca12fdc573001af0a4d5df4daeae47764af35f5c77342d3543fbc4750fb5c9ec
|
|
| MD5 |
1b212a7b55f4211283c44f35b703de10
|
|
| BLAKE2b-256 |
ada4820603450f896b95e2533f9f1d485469bbfb6d84ca9106d0d8e4a0de49fd
|
Provenance
The following attestation bundles were made for python_esios-2.4.0-py3-none-any.whl:
Publisher:
release-please.yml on datons/python-esios
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_esios-2.4.0-py3-none-any.whl -
Subject digest:
ca12fdc573001af0a4d5df4daeae47764af35f5c77342d3543fbc4750fb5c9ec - Sigstore transparency entry: 1167319233
- Sigstore integration time:
-
Permalink:
datons/python-esios@250a3e4ee73987a137caf2b7a4d1883fc25b3bd4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/datons
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@250a3e4ee73987a137caf2b7a4d1883fc25b3bd4 -
Trigger Event:
push
-
Statement type: