Install & Compatibility
Where this runs
tested against v1.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 1.484s · 167.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 7.9s · import 1.394s · 160MB
167MB installed
● package 167MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
get_data_df
✓ from eurostat import get_data_df
✗ import eurostat; eurostat.get_data_df(...)
Works but less conventional; direct import is preferred
EurostatDataset
✓ from eurostat import EurostatDataset
Class-based access; no common mistake
Download dataset 'tps00001' (population) as a pandas DataFrame.
from eurostat import get_data_df
df = get_data_df('tps00001')
print(df.head())
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'eurostat'
Package not installed or installed in wrong Python environment.
fixRun 'pip install eurostat' in the correct environment.
HTTPError: 403 Client Error: Forbidden for url
Eurostat API rate limiting or temporary restriction.
fixWait a few minutes and retry; do not make rapid requests.
Unable to parse the downloaded file
Eurostat TSV format changed or dataset not available.
fixCheck the dataset code and Eurostat status page.
Upgrade
Version history
1.1.1latest on PyPI · released Jun 13, 2024
Audit
Dependencies
pandasrequiredRequired for DataFrame output
requestsrequiredHTTP requests to Eurostat API