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
- Homepage: https://www.snb.ch
- Data portal: https://data.snb.ch
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b189cbf624b639e10137dbba9cf751061783db4a77cc35d489c7088607441901
|
|
| MD5 |
b952535f7a94ac4fc34620146177591e
|
|
| BLAKE2b-256 |
45b577c2d3291b034d3c358858322c040eb6fc644c6136fdfe374d39a5193c62
|
Provenance
The following attestation bundles were made for parsimony_snb-0.5.0.tar.gz:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_snb-0.5.0.tar.gz -
Subject digest:
b189cbf624b639e10137dbba9cf751061783db4a77cc35d489c7088607441901 - Sigstore transparency entry: 1453277924
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d53be3058a7553b577357a1fbf97fbc00e25455f26b514eca957eaeb06fa9fd8
|
|
| MD5 |
bed9f023c8297857f4c55e9bd7b8e698
|
|
| BLAKE2b-256 |
2e9b962b07bfe2349fd155569911fe43b7339834cb62147b4e40d29b3642ece6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_snb-0.5.0-py3-none-any.whl -
Subject digest:
d53be3058a7553b577357a1fbf97fbc00e25455f26b514eca957eaeb06fa9fd8 - Sigstore transparency entry: 1453277969
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type: