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.4.0.tar.gz (18.7 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.4.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_destatis-0.4.0.tar.gz
  • Upload date:
  • Size: 18.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 a886f9ee6960f74c971fc884fb86391773a3107e1a73812fa6ef3bac1d7294da
MD5 9e01b371d1a17643b59bcc1095ddc6db
BLAKE2b-256 0dd53501c924311bfc71028af34d792af1aee3f66a984b4b18189ffac9f1020e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for parsimony_destatis-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bdd3de7bfaf88bc2ae1cc7d3f9598765a4df2152220211a91e8426d7137bc76
MD5 0f395c17635e808f6dc1476fcf30d1c6
BLAKE2b-256 b13c0833a6ff7e0576293bc523a84ca3243b25df1512d9abe8bda1289a77e25f

See more details on using hashes here.

Provenance

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