eurostat
Eurostat Python Package
What it is and what it does
Eurostat is a Python client for querying European statistical databases—primarily Eurostat, but also COMEXT, DG COMP, DG EMPL, and DG GROW—via the SDMX 2.1 web services API. It lets you browse available datasets, fetch their metadata and parameter definitions, and download data into pandas dataframes or as lists of tuples. The package wraps HTTP requests to Eurostat's dissemination API, handling the SDMX protocol details so you don't have to.
The package depends only on pandas and requests, making it lightweight to install. It requires Python 3.5 or later. Note that the package underwent a major rewrite in version 1.0.0 to adapt to Eurostat's API migration; some SDMX functions are now deprecated and will be removed in a future release, though they remain available with alert messages.
Use it for:
- Download employment, GDP, or regional economic data from Eurostat for analysis in pandas.
- Query the Eurostat table of contents to discover available datasets and filter by keyword.
- Retrieve parameter definitions and allowed values for a dataset to construct filtered data requests.
- Fetch trade data from COMEXT or labor statistics from DG EMPL for economic research.
- Automate periodic data pulls from Eurostat into a data pipeline or research workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Fetches statistical data and metadata from Eurostat and related European Commission databases via their SDMX 2.1 API, returning results as pandas dataframes or tuples.
Yes, if you need to access Eurostat data programmatically. The package is stable, permissive-licensed, and has no known vulnerabilities. However, dormant maintenance (last release 792 days ago) means you should verify that the Eurostat API endpoint has not changed and that deprecated SDMX functions still work for your use case before committing to it in production.
Install
eurostat on PyPI
pip
pip install eurostatuv
uv add eurostatpoetry
poetry add eurostatInstalling eurostat
Before you install
Low friction: pure Python wheel with only pandas and requests as runtime dependencies. Maintenance is dormant—last release was 792 days ago—but the package is marked Production/Stable and has no known vulnerabilities.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in both open and closed projects with minimal restrictions.
Quickstart
pip install eurostat
import eurostat
# Get table of contents as dataframe
toc_df = eurostat.get_toc_df()
# Get parameters for a dataset
pars = eurostat.get_pars('demo_r_d2jan')
# Get parameter values
values = eurostat.get_par_values('demo_r_d2jan', 'sex')
Requires network access to Eurostat's SDMX 2.1 API endpoint; no local data is included.
Verify before relying
- Whether the Eurostat API endpoint remains stable and unchanged since the last release 792 days ago.
- Current status of the SDMX functions marked as deprecated in version 1.0.0 and scheduled for removal in 2.0.0.
- Whether the package handles authentication or rate-limiting for the Eurostat API.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pandas, requests |
| Maintenance | dormant — 792 days since the last release |
| First released | |
| Downloads | 100,128/month — #12,998 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: eurostat-1.1.1-py3-none-any.whl
Keywords: eurostat, comext, prodcom, statistics, data, economics, science
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
sdmx1Reads, writes, and exchanges statistical data…
permissive · top 15,000 on PyPI
imfpDownloads economic data from the International…
permissive · top 15,000 on PyPI
wbdataWbdata provides a Python interface to query and…
copyleft · top 5,000 on PyPI
pantabConverts DataFrames to and from Tableau Hyper…
permissive · top 15,000 on PyPI
fredapifredapi wraps the FRED web service to fetch…
unclear · top 5,000 on PyPI
stats-canFetches Statistics Canada data through the Web…
copyleft · top 15,000 on PyPI
statsbombpyStreams StatsBomb football analytics data into…
unclear · top 15,000 on PyPI
gspread-dataframeConverts between Google Sheets worksheets and…
permissive · top 5,000 on PyPI
pandas-tdPandas-TD connects pandas DataFrames to…
permissive · top 15,000 on PyPI
pandas-read-xmlConverts XML files into pandas DataFrames, with…
permissive · top 15,000 on PyPI