Skip to main content

Destatis (German federal statistics) connector for the parsimony framework

Project description

parsimony-destatis

Destatis (German Federal Statistical Office) connector — fetches tables from the GENESIS-Online 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 table_id (e.g. 61111-0001), with optional start_year / end_year. German number/date formats are normalized automatically.
enumerate_destatis enumerator Enumerate GENESIS tables via the catalogue API (catalog indexing).

Install

pip install parsimony-destatis

Pulls in parsimony-core>=0.4,<0.5 automatically. Verify discovery:

python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"

Configuration

Both environment variables are optional. When unset, the connectors default to the public guest account (GAST / GAST), which is Destatis's documented anonymous credential pair:

export DESTATIS_USERNAME="<your-username>"   # optional, defaults to GAST
export DESTATIS_PASSWORD="<your-password>"   # optional, defaults to GAST

Register for a personal account at https://www-genesis.destatis.de/genesis/online if the guest account is rate-limited or redirected to an announcement page.

Quick start

import asyncio
from parsimony_destatis import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["destatis_fetch"](table_id="61111-0001")
    print(result.data.head())

asyncio.run(main())

For multi-plugin composition:

from parsimony import discover
connectors = discover.load_all().bind_env()

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.5.0.tar.gz (19.1 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.5.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_destatis-0.5.0.tar.gz.

File metadata

  • Download URL: parsimony_destatis-0.5.0.tar.gz
  • Upload date:
  • Size: 19.1 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.5.0.tar.gz
Algorithm Hash digest
SHA256 80a3833852107974961b3f62461748436bfb09d06368046c0184ffbec44d188c
MD5 9655f10b6e56a43302f49d9544d79d25
BLAKE2b-256 dd8897589b7a11a0042a59487ddc62bdce7ca4b566d864a22f9d6b14b9ef47f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_destatis-0.5.0.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.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_destatis-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f223d2a5bdcf942406be3e6bd0a8d38e02a16117c274a0395b8458aed6c1c21b
MD5 959fb05896a3d9a6ed44b0d45d8c5ff5
BLAKE2b-256 b91d8d46768c3394fdb543b0509ad0d5ee64ef6320346e36e1ca018acc0b7220

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_destatis-0.5.0-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