Skip to main content

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

License

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsimony_destatis-0.0.1.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsimony_destatis-0.0.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

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

Hashes for parsimony_destatis-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4d122daa04952edc133ff03f831d3bb165a77637fbb2c843b0028afe54b3b7bf
MD5 c4e7058c65cb9a317fc0f4e7af786a62
BLAKE2b-256 e15ca43011b4df0571d1d84ad23e25cae5e0cfb67c202e9b0e338e52b914764c

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_destatis-0.0.1.tar.gz:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parsimony_destatis-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_destatis-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca92d02119cdcaab8b3fe6bf7719cb94c28c5b9711d565398bf53b004cdda013
MD5 283db36712c2c4ad80ded50f94250af9
BLAKE2b-256 5ced9450f8686dfa6ea5ffff6c3b00bec9f20fe9dc9dafb9f4eca512616ed976

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page