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.

Metadata

Release files for parsimony-snb 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parsimony-snb 0.0.2
File Size Uploaded Provenance
parsimony_snb-0.0.2.tar.gz 18.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for parsimony-snb 0.0.2
File Interpreter ABI Platform
parsimony_snb-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / parsimony_snb-0.0.2.tar.gz

Download URL parsimony_snb-0.0.2.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a8941f914222bffd91fad6d98248072f309fca0a50d494a3c2602ae9d88eb344
BLAKE2b-256 checksum
How to use checksums
c3e694e1ab2e6214abe3f43e012ac3bc774c9abd7bb7996f463a39f537b6fc6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / parsimony_snb-0.0.2-py3-none-any.whl

Download URL parsimony_snb-0.0.2-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
336cba92928a541689c0bb1c44ae7b3368e343d299bb37af93b74091d3c1a382
BLAKE2b-256 checksum
How to use checksums
013a0990c725befd4f8ab190f74cb4bf75746c4614f51572ff5cd28290e0e303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Security for parsimony-snb 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for parsimony_snb-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

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