Skip to main content

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

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_riksbank-0.5.0.tar.gz (17.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_riksbank-0.5.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

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

Hashes for parsimony_riksbank-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b567a2d1ca745cf462262444e7218390a9f727213509e0b9cfa94f5cfe42fa93
MD5 b269bdf68d7dccd11fe82e455b6deaeb
BLAKE2b-256 51605fa7c8266a52e45a3fff9bfd20e96f50bc0a4f6ed4036bf77e742fdf6aaf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for parsimony_riksbank-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f55ef3c21c1539c5fedaf282f79ec9d208ff81ac421299fad053c5133583551
MD5 3e7cdc42fcc47cb4330d80f2a2620d5e
BLAKE2b-256 fffdd43e09f9d7e6595821a31c74fd543029a9e188eb3ada2225ac155a01e213

See more details on using hashes here.

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

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