skillfed

entsoe-py

A python API wrapper for ENTSO-E

entsoe-py v0.8.0 464.6K downloads/30d#6,515 on PyPI716
Permissive license MIT Active released

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-py

uv

uv add entsoe-py

poetry

poetry add entsoe-py

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Topic :: Scientific/Engineering

Tags

ENTSO-E API clienteuropean electricity datatransmission system operator APIpower grid data pythonenergy market data APIcross-border electricity flowsday-ahead prices API
energy-dataapi-clienttime-series

More Scientific/Engineering packages