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

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_riksbank-0.4.0.tar.gz
  • Upload date:
  • Size: 17.5 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.4.0.tar.gz
Algorithm Hash digest
SHA256 1797b448a3ada7c046f6481ea908d4f9d22598361194b11998b80562fbdd257f
MD5 f4b6e20ebce936eef0af4386d7f3c3d0
BLAKE2b-256 6835ddf6f72f5e27ea330d6d47bd23b976d838c4ec20f94d8c3ce8099f28b628

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for parsimony_riksbank-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d20d082c4d80cbb7f0d7e10812a52dd6c81fd597bec254bb635f4a46f5a9e9
MD5 480881162d138feca64bffe07120e95d
BLAKE2b-256 7e90bb15b73a8e8b5d38cc4877442471ec0de4ec2126e2e12a78c94d5a2d37b7

See more details on using hashes here.

Provenance

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