Skip to main content

Swiss National Bank connector for the parsimony framework

Project description

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 tidy DataFrame by cube_id, with optional date window, dimension selection, and language.
enumerate_snb enumerator Enumerate the curated SNB cube list with inferred category and frequency (drives the snb catalog).

Install

pip install parsimony-snb

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()])"

Quick start

import asyncio
from parsimony_snb import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["snb_fetch"](cube_id="rendoblim")
    print(result.data.head())

asyncio.run(main())

For multi-plugin composition:

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

Catalog publishing

This plugin publishes a catalog under the snb namespace, backed by enumerate_snb (param-less; probes a curated SNB cube list).

parsimony publish --provider snb --target "hf://<your-org>/parsimony-snb"

The {namespace} placeholder in --target is substituted with snb at publish time; targets support file://, hf://, and s3:// schemes.

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_snb-0.5.0.tar.gz (19.3 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.5.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_snb-0.5.0.tar.gz
  • Upload date:
  • Size: 19.3 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.5.0.tar.gz
Algorithm Hash digest
SHA256 b189cbf624b639e10137dbba9cf751061783db4a77cc35d489c7088607441901
MD5 b952535f7a94ac4fc34620146177591e
BLAKE2b-256 45b577c2d3291b034d3c358858322c040eb6fc644c6136fdfe374d39a5193c62

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_snb-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d53be3058a7553b577357a1fbf97fbc00e25455f26b514eca957eaeb06fa9fd8
MD5 bed9f023c8297857f4c55e9bd7b8e698
BLAKE2b-256 2e9b962b07bfe2349fd155569911fe43b7339834cb62147b4e40d29b3642ece6

See more details on using hashes here.

Provenance

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