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

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_snb-0.4.0.tar.gz
  • Upload date:
  • Size: 18.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 2affb5bb7613be8ca0c9324c83d8268ffc6f5e59811b6c0650b662f831b255ba
MD5 0b606cbed42639c716da7278c640585c
BLAKE2b-256 091ec81d267ff63e9bd062581247d604c2eebdcf29a5080f71a6c68e5afc82f9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_snb-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1971f37ea267466710334cebc4bfbd4cee4e4c5d09ce3fe8b62c78d775af59cd
MD5 a7e51a41810309e640d2299f6a8fb76c
BLAKE2b-256 46df4a24861f733491f62046b8083a1e763770448e98b5294aac98b6a6543d28

See more details on using hashes here.

Provenance

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