entsoe-py
A python API wrapper for ENTSO-E
What it is and what it does
entsoe-py is a Python wrapper around the ENTSO-E (European Network of Transmission System Operators for Electricity) REST API, providing structured access to European electricity market and grid data. The package offers two client interfaces: EntsoeRawClient returns data in its native XML or ZIP format, while EntsoePandasClient automatically parses results into Pandas Series or DataFrames for easier analysis. It handles common operational concerns like splitting requests that span more than one year and managing large batches of API calls transparently.
The package depends on requests for HTTP communication, pytz for timezone handling, beautifulsoup4 for XML parsing, and pandas for data structuring. It is actively maintained, classified as Production/Stable, and supports Python 3.9, 3.10, and 3.11. The API surface includes methods for querying day-ahead prices, generation forecasts, load data, cross-border flows, capacity information, and balancing market data across European countries and interconnections.
Use it for:
- Retrieve day-ahead electricity prices for specific European countries to analyze market trends or build pricing models.
- Query wind and solar generation forecasts and actual generation data for renewable energy analysis and grid planning.
- Fetch cross-border electricity flow data to study interconnection patterns and network congestion between countries.
- Obtain load forecasts and actual load data for demand-side analysis and capacity planning.
- Build time-series datasets of electricity market data for machine learning or statistical analysis of European energy markets.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python clients to query the ENTSO-E API for European electricity transmission system data, returning results as raw XML/ZIP or parsed Pandas DataFrames.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with low friction. It is the standard Python interface to ENTSO-E data and is well-suited for anyone working with European electricity market or grid data. Verify that you can obtain an API key and that the endpoints you need are currently supported.
Install
entsoe-py on PyPI
pip
pip install entsoe-pyuv
uv add entsoe-pypoetry
poetry add entsoe-pyInstalling entsoe-py
Before you install
Low install friction with four common dependencies (requests, pytz, beautifulsoup4, pandas). Package is actively maintained with a recent release and 716 repository stars, indicating stable, established use.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects without legal concern.
Quickstart
pip install entsoe-py
from entsoe import EntsoePandasClient
import pandas as pd
client = EntsoePandasClient(api_key='your_api_key')
start = pd.Timestamp('20171201', tz='Europe/Brussels')
end = pd.Timestamp('20180101', tz='Europe/Brussels')
prices = client.query_day_ahead_prices('BE', start=start, end=end)
Requires a valid ENTSO-E API key (obtainable from the ENTSO-E transparency platform); timestamps must be pandas Timestamp objects with timezone information.
Verify before relying
- Whether API key registration is free or has usage limits beyond what the fact sheet indicates.
- Performance characteristics for large date ranges or high-frequency queries.
- Whether all ENTSO-E API endpoints are currently supported or if some have been deprecated.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — requests, pytz, beautifulsoup4, pandas |
| Maintenance | actively maintained — 122 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 464,595/month — #6,515 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: entsoe_py-0.8.0-py3-none-any.whl
Keywords: ENTSO-E, data, api, energy
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
energyquantifiedA Python client library for querying Energy…
permissive · top 15,000 on PyPI
energyzeroAsynchronous Python client for retrieving…
permissive · top 15,000 on PyPI
gridstatusgridstatus provides a unified Python API to…
unclear · top 15,000 on PyPI
openbb-us-eiaIntegrates U.S. Energy Information…
agpl · top 15,000 on PyPI
amberelectricProvides a Python interface to the Amber…
permissive · top 15,000 on PyPI
pandas-read-xmlConverts XML files into pandas DataFrames, with…
permissive · top 15,000 on PyPI
pyTibberPython library for querying Tibber's…
copyleft · top 15,000 on PyPI
pandapowerpandapower automates power system modeling,…
permissive · top 15,000 on PyPI
spgciPython client library for the S&P Global…
permissive · top 15,000 on PyPI
opowerFetches historical and forecasted energy usage…
permissive · top 15,000 on PyPI