Destatis (German federal statistics) connector for the parsimony framework
Project description
parsimony-destatis
Destatis (German Federal Statistical Office) connector — fetches and enumerates tables from the public GENESIS-Online REST API.
Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-destatis.
Connectors
| Name | Kind | Description |
|---|---|---|
destatis_fetch |
fetch | Fetch a GENESIS table by code (e.g. 61111-0001), with optional start_year / end_year. JSON-stat 2.0 is parsed into long-format rows; German month/quarter labels are normalized to ISO dates. |
enumerate_destatis |
enumerator | Enumerate GENESIS statistics and their tables (catalog indexing) by crawling /statistics, /statistics/{code}/information, and /statistics/{code}/tables. |
destatis_search |
tool | Semantic-search the published Destatis catalog and map a natural-language query to a table code (feed it to destatis_fetch(name=...)). |
Coverage
The keyless GENESIS-Online REST API exposes 3,009 predefined tables across 331 statistics
(prices, population, national accounts, labour, foreign trade, production, transport, health,
environment, earnings, …). enumerate_destatis walks the authoritative path — /statistics
then a per-statistic /tables fan-out — which is lossless (every statistic's table list comes
back in full, no pagination cap, no table shared across statistics), so the catalog contains
every fetchable table. Each table is itself multi-dimensional: destatis_fetch returns one row
per (classification combination × period), with the classification dimensions preserved as
columns. Time is parsed from the JSON-stat period keys (annual, monthly, quarterly, semester,
reference-date, school-year — all normalized to ISO dates).
The multidimensional cube / custom-table power-user surface of classic GENESIS is not part of this keyless API (it belonged to the retired registration-gated webservice) and is out of scope.
Install
pip install parsimony-destatis
Pulls in parsimony-core>=0.7,<0.8 automatically. Verify discovery:
python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"
Configuration
No credentials required. GENESIS-Online allows anonymous access — there is no API key, username, or password to set.
The only optional setting is the catalog-snapshot URL used by destatis_search:
export PARSIMONY_DESTATIS_CATALOG_URL="hf://your-org/destatis" # optional; overrides the default snapshot
Quick start
from parsimony_destatis import CONNECTORS
result = CONNECTORS["destatis_fetch"](name="61111-0001")
print(result.data.head())
For multi-plugin composition:
from parsimony import discover
connectors = discover.load_all()
Provider
- Homepage: https://www.destatis.de
- GENESIS-Online API: https://genesis.destatis.de/genesis/api/rest
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parsimony_destatis-0.0.1.tar.gz.
File metadata
- Download URL: parsimony_destatis-0.0.1.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d122daa04952edc133ff03f831d3bb165a77637fbb2c843b0028afe54b3b7bf
|
|
| MD5 |
c4e7058c65cb9a317fc0f4e7af786a62
|
|
| BLAKE2b-256 |
e15ca43011b4df0571d1d84ad23e25cae5e0cfb67c202e9b0e338e52b914764c
|
Provenance
The following attestation bundles were made for parsimony_destatis-0.0.1.tar.gz:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_destatis-0.0.1.tar.gz -
Subject digest:
4d122daa04952edc133ff03f831d3bb165a77637fbb2c843b0028afe54b3b7bf - Sigstore transparency entry: 1971024556
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file parsimony_destatis-0.0.1-py3-none-any.whl.
File metadata
- Download URL: parsimony_destatis-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca92d02119cdcaab8b3fe6bf7719cb94c28c5b9711d565398bf53b004cdda013
|
|
| MD5 |
283db36712c2c4ad80ded50f94250af9
|
|
| BLAKE2b-256 |
5ced9450f8686dfa6ea5ffff6c3b00bec9f20fe9dc9dafb9f4eca512616ed976
|
Provenance
The following attestation bundles were made for parsimony_destatis-0.0.1-py3-none-any.whl:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_destatis-0.0.1-py3-none-any.whl -
Subject digest:
ca92d02119cdcaab8b3fe6bf7719cb94c28c5b9711d565398bf53b004cdda013 - Sigstore transparency entry: 1971024612
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
Trigger Event:
workflow_dispatch
-
Statement type: