Swedish Riksbank connector for the parsimony framework
Project description
parsimony-riksbank
Sveriges Riksbank source for parsimony: time-series fetch and catalog enumeration via the SWEA API.
Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-riksbank.
Connectors
| Name | Kind | Description |
|---|---|---|
riksbank_fetch |
connector | Fetch a single Riksbank time series by series_id (e.g. SEKEURPMI). Returns date + value with the series title. |
enumerate_riksbank |
enumerator | Enumerate every Riksbank series via the /Groups and /Series endpoints with frequency and group-path metadata. |
Install
pip install parsimony-riksbank
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()])"
Configuration
export RIKSBANK_API_KEY="<your-key>" # optional
RIKSBANK_API_KEY is optional: the connector binds and runs against the public SWEA endpoints even when the variable is unset (it defaults to "" and the Ocp-Apim-Subscription-Key header is omitted). Register at https://developer.api.riksbank.se/ for higher quota.
Quick start
import asyncio
from parsimony_riksbank import CONNECTORS
async def main():
connectors = CONNECTORS.bind_env()
result = await connectors["riksbank_fetch"](series_id="SEKEURPMI")
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 riksbank namespace, backed by enumerate_riksbank.
parsimony publish --provider riksbank --target "hf://<your-org>/parsimony-riksbank"
Provider
- Homepage: https://www.riksbank.se
- API docs: https://developer.api.riksbank.se/
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_riksbank-0.5.0.tar.gz.
File metadata
- Download URL: parsimony_riksbank-0.5.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b567a2d1ca745cf462262444e7218390a9f727213509e0b9cfa94f5cfe42fa93
|
|
| MD5 |
b269bdf68d7dccd11fe82e455b6deaeb
|
|
| BLAKE2b-256 |
51605fa7c8266a52e45a3fff9bfd20e96f50bc0a4f6ed4036bf77e742fdf6aaf
|
Provenance
The following attestation bundles were made for parsimony_riksbank-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_riksbank-0.5.0.tar.gz -
Subject digest:
b567a2d1ca745cf462262444e7218390a9f727213509e0b9cfa94f5cfe42fa93 - Sigstore transparency entry: 1453272336
- 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_riksbank-0.5.0-py3-none-any.whl.
File metadata
- Download URL: parsimony_riksbank-0.5.0-py3-none-any.whl
- Upload date:
- Size: 18.3 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 |
0f55ef3c21c1539c5fedaf282f79ec9d208ff81ac421299fad053c5133583551
|
|
| MD5 |
3e7cdc42fcc47cb4330d80f2a2620d5e
|
|
| BLAKE2b-256 |
fffdd43e09f9d7e6595821a31c74fd543029a9e188eb3ada2225ac155a01e213
|
Provenance
The following attestation bundles were made for parsimony_riksbank-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_riksbank-0.5.0-py3-none-any.whl -
Subject digest:
0f55ef3c21c1539c5fedaf282f79ec9d208ff81ac421299fad053c5133583551 - Sigstore transparency entry: 1453272393
- 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: