Skip to main content

EuroStatPy

Upload Python Package

Unit Tests

Basic package for querying & downloading EuroStat data by dataset name or ID. Currently saves data into JSONStat format or a pandas.DataFrame.

Allows for querying datasets via plain text search or table ID.

Installation

pip install eurostatpy

Usage

Importing

from eurostatpy import EuroStatPy
euroStat = EuroStatPy()

Download Data by Name

euroStat.get_table_from_name("Energy taxes by paying sector")
>>> `JSONStat` object

euroStat.get_table_from_name_as_pandas("Energy taxes by paying sector")
>>> `pandas.DataFrame` object

Download Data by ID

euroStat.get_table_from_id("rail_tf_ns20_hu")
>>> `JSONStat` object

euroStat.get_table_from_id_as_pandas("rail_tf_ns20_hu")
>>> `pandas.DataFrame` object

List Available Table Names in English, French, and German

euroStat.datasets_en
>>> ["Population connected to wastewater treatment plants", ...]
euroStat.datasets_fr
>>> ["Compte courant - données trimestrielles", ...]
euroStat.datasets_de
>>> ["Leistungsbilanz - vierteljährliche Daten", ...]

List Available Table IDs

euroStat.codes
>>> ["env_waspb", "rail_tf_ns20_hu", ...]

Print Available Datasets in English, French, and German

euroStat.list_datasets()
>>> "1. Dataset: Current account - quarterly data | Code: ei_bpm6ca_q
     2. Dataset: Financial account - quarterly data | Code: tipsbp48
     ...
     6930. Dataset: Youth unemployment ratio by sex, age and NUTS 2 regions | Code: yth_empl_140"
euroStat.list_datasets(language = "fr")
>>> "1. Compte courant - données trimestrielles | Code: ei_bpm6ca_q
     2. Dataset: Compte financier - données trimestrielles | Code: tipsbp48
     ...
     6920. Dataset: Ratio de chômage des jeunes par sexe, âge et région NUTS 2 | Code: yth_empl_140"
euroStat.list_datasets(language = "de")
>>> "1. Dataset: Leistungsbilanz - vierteljährliche Daten | Code: tipsbp40
     2. Dataset: Finanzierungskonto - vierteljährliche Daten | Code: tipsbp48
     ...
     6922. Dataset: Anteil der arbeitslosen Jugendlichen nach Geschlecht, Alter und NUTS-2-Regionen | Code: yth_empl_140"

Further Reading

Metadata

Release files for eurostatpy 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eurostatpy 1.1.0
File Size Uploaded Provenance Actions
eurostatpy-1.1.0.tar.gz 1.4 MB Without provenance Details for eurostatpy-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eurostatpy 1.1.0
File Interpreter ABI Platform Actions
eurostatpy-1.1.0-py3-none-any.whl Python 3 none any Details for eurostatpy-1.1.0-py3-none-any.whl

Total release size: 2.9 MB

Release files / eurostatpy-1.1.0.tar.gz

Download URL eurostatpy-1.1.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
58d52fa6bc3f9c5b4722d26c224201403bf136afbaa1342abae2650d5a386178
BLAKE2b-256 checksum
How to use checksums
e31e8eda943db4ac2f70284d9dcdf2df7570f30f6b2b94871c42cc9447cf704d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / eurostatpy-1.1.0-py3-none-any.whl

Download URL eurostatpy-1.1.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7e087b7305e9927bedb00f80ccf37783c0f32bc4fabe17ccfa486082d41d970c
BLAKE2b-256 checksum
How to use checksums
98d46d891e6dcd2c3a0526ea7490557e81a6a24cd7dc3dbf15d3b40d95406fed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for eurostatpy 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page