Skip to main content

parsimony-snb

Swiss National Bank connector plugin for parsimony — monetary, exchange-rate, balance-of-payments, and price series from the SNB data portal (https://data.snb.ch).

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-snb.

Connectors

Name Kind Description
snb_fetch connector Fetch an SNB cube as a long-format DataFrame by cube_id — both publication cubes (rendoblim) and data-warehouse cubes (BSTA@SNB.AUR_U.ODF), routed automatically. Optional date window, dimension selection, and language.
enumerate_snb enumerator Enumerate every SNB cube discovered live from the portal sitemap (publication + warehouse) as catalog rows (drives the snb catalog).
snb_search search Semantic search over the published SNB catalog. Pass the returned cube_id column to snb_fetch(cube_id=...).

Coverage

The cube universe is discovered live from the SNB portal's published XML sitemap (https://data.snb.ch/sitemap), so the catalog self-tracks new cubes:

  • 237 publication cubes (/topics/{topic}/cube/{id}) — catalogued at series granularity (compound cube_id#series_key codes).
  • 912 data-warehouse cubes (/warehouse/{group}/cube/{sdmx_id}, groups BSTA / ZAST / ZAHL / DDUM / KRED / SNB1A / WKI) — catalogued at cube level; the individual dimension-leaf series stay fetchable via dim_sel.

Every catalogued cube (1,149 total) is fetchable through snb_fetch. Cube titles come from the portal's metadata API on a best-effort basis. SNB is a public, keyless data portal — no API key.

Install

pip install parsimony-snb

Pulls in a compatible parsimony automatically. Verify discovery:

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

Quick start

from parsimony_snb import CONNECTORS

result = CONNECTORS["snb_fetch"](cube_id="rendoblim")
print(result.raw.head())

For multi-plugin composition:

from parsimony import discover

connectors = discover.load_all()

Catalogs

snb_search runs semantic search over a published catalog snapshot (hf://parsimony-dev/snb by default; override with the PARSIMONY_SNB_CATALOG_URL env var or load(catalog_url=...)). The snapshot is built from enumerate_snb via scripts/build_catalog.py. No API key is required — SNB is a public, keyless data portal.

Provider

License

See LICENSE.

Download files

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

Source Distribution

parsimony_snb-0.0.2.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

parsimony_snb-0.0.2-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_snb-0.0.2.tar.gz.

File metadata

  • Download URL: parsimony_snb-0.0.2.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_snb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a8941f914222bffd91fad6d98248072f309fca0a50d494a3c2602ae9d88eb344
MD5 451740cccb45c1ef0c02a2fae45cda5c
BLAKE2b-256 c3e694e1ab2e6214abe3f43e012ac3bc774c9abd7bb7996f463a39f537b6fc6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_snb-0.0.2.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_snb-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: parsimony_snb-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_snb-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 336cba92928a541689c0bb1c44ae7b3368e343d299bb37af93b74091d3c1a382
MD5 bde58388fdd60282e5e9448b3129b9bb
BLAKE2b-256 013a0990c725befd4f8ab190f74cb4bf75746c4614f51572ff5cd28290e0e303

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page