skillfed

eurostat

Eurostat Python Package

eurostat v1.1.1 100.1K downloads/30d#12,998 on PyPI
Permissive license MIT DORMANT released

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 eurostat

uv

uv add eurostat

poetry

poetry add eurostat

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Office/BusinessTopic :: Office/Business :: FinancialTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Information AnalysisTopic :: Utilities

Tags

eurostat data downloadeuropean statistics APISDMX data retrievaleurostat python clientEU statistical data accesscomext data fetchingeuropean commission statistics
data-accesseurostatsdmx

More Scientific/Engineering packages