Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SanPen/ESIOS
Comprehensive library to access the Spanish electricity market entity (ESIOS), in python 3
https://github.com/SanPen/ESIOS
Last synced: 3 months ago
JSON representation
Comprehensive library to access the Spanish electricity market entity (ESIOS), in python 3
- Host: GitHub
- URL: https://github.com/SanPen/ESIOS
- Owner: SanPen
- License: gpl-3.0
- Created: 2016-09-02T15:04:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T18:25:33.000Z (7 months ago)
- Last Synced: 2024-06-11T19:27:20.434Z (5 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 908 KB
- Stars: 46
- Watchers: 4
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- open-sustainable-technology - ESIOS - Comprehensive library to access the Spanish electricity market entity in Python. (Energy Systems / Energy Data Accessibility and Integration)
README
# ESIOS
Access to the ESIOS data, the Spanish electricity market entity, in python 3
(python 2.7 might work but it is not supported)This API is made to make it painless to access the market published data.
First you need a token string. You should ask for yours to: Consultas Sios
It looks like this
`'615e6d8c80629b8eef25c8f3d0c36094e23db4ed50ce5458f3462129d7c46dba'`To use the ESIOS module, just do:
```
from ESIOS import *token = '615e6d8c80629b8eef25c8f3d0c36094e23db4ed50ce5458f3462129d7c46dba'
esios = ESIOS(token)
indicators_ = [1293, 600] # demand (MW) and SPOT price (€)
names = esios.get_names(indicators_)
dfmul, df_list, names = esios.get_multiple_series(indicators_, start_, end_)
df = dfmul[names] # get the actual series and neglect the rest of the info
```This is an example of what you can get:
![Image of some indicators on December 2015](https://github.com/SanPen/ESIOS/blob/master/example.png)
If you have any suggestion please write to: (Español e Inglés)
To install ESIOS package
```
pip install pyesios# To build the graphs in the examples
pip install pyesios[graphs]
```## [Contribuiting](./CONTRIBUITING.md)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
## WARNING
The API is having troubles with request made from 2022 on, There is a limiter in place to not go to those dates.