Skip to main content

A Python wrapper for the ESIOS API

Project description

A Python library to download preprocessed data from the ESIOS API (REE)

ESIOS API is a service provided by the Spanish electricity system operator (REE) that offers access to a wide range of data related to the electricity market in Spain.

This library provides a simple interface to download and preprocess the data from the ESIOS API.

Install library

pip install python-esios

Get token

Ask for a personal token to access the ESIOS API following the instructions from REE.

Usage

Register the token in Python

TOKEN = '343sdfewe342309gjarijgwoiret834383434524...'
TOKEN = '<YOUR_TOKEN>'

Then, set the token in the environment variable ESIOS_API_KEY.

import os
os.environ['ESIOS_API_KEY'] = TOKEN

Instantiate the client

from esios import ESIOSClient
client = ESIOSClient()

Access the endpoint

endpoint = client.endpoint(name=?)

In the tutorials below, you will learn how to download, preprocess, and visualize the data from the following endpoints:

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

python_esios-0.2.5.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

python_esios-0.2.5-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file python_esios-0.2.5.tar.gz.

File metadata

  • Download URL: python_esios-0.2.5.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for python_esios-0.2.5.tar.gz
Algorithm Hash digest
SHA256 fd887a5fe28f05da35fe175aca6c9551de4f03e86936c04832b3348a8921d13a
MD5 69e11f21c49aef75a6532d776a6e2c60
BLAKE2b-256 2453119c94cc5614a31df9e6020790e5116baa4a9107386892828f04e5bccc6f

See more details on using hashes here.

File details

Details for the file python_esios-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: python_esios-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for python_esios-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9fe6c935473c3e2b5150c4ff9b170052f8e04615a338523049a176221b00d8dc
MD5 6746749fbcff7fbb1aa273fd52def063
BLAKE2b-256 4fa6499c8b9052906d1bd2660d3cb57b7d6d79b50731032ef28847ac7192e794

See more details on using hashes here.

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