Ardeco Py Package
Ardeco Py Package is a lightweight Python client for the ARDECO API (Annual Regional Database of the European Commission).
It allows easy access to regional socio-economic datasets through both GraphQL and REST endpoints, returning clean and ready-to-use pandas DataFrames.
Installation
pip install ardeco-py-package
Or, to test the package before release:
pip install -i https://test.pypi.org/simple/ ardeco-py-package --extra-index-url https://pypi.org/simple
Quick Example
from ardeco_py_package import Ardeco
# Initialize the ARDECO client
ardeco = Ardeco()
# Get available variables
variables = ardeco.get_variable_list()
print(variables.head())
# Access variable dimensions (auto-formatted)
variable = ardeco.get_variable("SNPTN")
print(variable.dimensions)
# {'age': ['TOTAL', 'Y_LT15', 'Y_GE65'], 'sex': ['F', 'M'], 'unit': ['NR']}
# Fetch data for a specific variable
data = ardeco.get_data(
"SNPTN",
unit="NR",
age="TOTAL",
nuts_versions=2024,
date=2021
)
print(data.head())
Main Features
- Retrieve variable and dataset lists from the ARDECO API
- Filter datasets by multiple dimensions (unit, sex, age, etc.) and columns (territory_id, date, and level_id)
- Download structured CSV data as pandas.DataFrame
- Query TERCET classifications for territorial analysis
Methods Overview
| Method | Description |
|---|---|
get_variable_list() |
List all available variables |
get_variable(var_code) |
Get details of a specific variable |
get_dataset_list(var_code) |
Retrieve available datasets |
get_data(var_code, **filters) |
Fetch filtered data as DataFrame |
get_tercet_list() |
Retrieve TERCET territorial classifications |
License
This project is licensed under the EUPL v1.2 license. See the included LICENSE file for details.
Metadata
Release files for ardeco-py-package 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ardeco_py_package-1.0.0.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ardeco_py_package-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.0 kB
Release files / ardeco_py_package-1.0.0.tar.gz
| Download URL | ardeco_py_package-1.0.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4a99afc655a055e5681faeb1a32c509268be9e47ba54c25a079225b93df50b8
|
|
BLAKE2b-256 checksum How to use checksums |
86a445d849615d7ed089552c32a8405b33adc0e58ce5fb278dcfea55529ee978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / ardeco_py_package-1.0.0-py3-none-any.whl
| Download URL | ardeco_py_package-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec6fb136ba35f73427a818dc37d701de06368c0e1c838077a851bbe3380f86ad
|
|
BLAKE2b-256 checksum How to use checksums |
f1ed33905299e720107ccbeceec0846923368fa19021d38a3992e34f3240b51f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|