Skip to main content

Bank of Canada connector for the parsimony framework

Project description

parsimony-boc

Bank of Canada connector — Canadian exchange rates, interest rates, and macroeconomic time series via the Valet API.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-boc.

Connectors

Name Kind Description
boc_fetch fetch Fetch one or more BoC time series by name (e.g. FXUSDCAD,FXEURCAD) or by group (e.g. group:FX_RATES_DAILY).
enumerate_boc enumerator Enumerate all BoC series (15,000+) via /lists/series/json.

Install

pip install parsimony-boc

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

No configuration required — the Bank of Canada Valet API is open and unauthenticated.

Quick start

import asyncio
from parsimony_boc import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["boc_fetch"](series_name="FXUSDCAD")
    print(result.data.head())

asyncio.run(main())

For multi-plugin composition (autoloads everything installed):

from parsimony import discover
connectors = discover.load_all().bind_env()

Catalog publishing

This plugin publishes catalogs under the boc namespace. Build and push:

parsimony publish --provider boc --target "hf://<your-org>/parsimony-boc"

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_boc-0.4.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsimony_boc-0.4.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_boc-0.4.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_boc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1246db56216145acd0fd39e197b165705556b03dcb014f6285010a1b2c5d6a33
MD5 566c35575d25738d86d64ef01d61da45
BLAKE2b-256 07aa81757945e4fe3cbe4573ef6e7dcfca368f90d9f549a42feec5235240811e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_boc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_boc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f67ea3ac11f08749a006f9a5c923e60a5b3913408eb36703ce67df6cd4ffb540
MD5 7949d52d5fc831caa1f5c96228d7941b
BLAKE2b-256 0de3c87eab5c903bba0a91361568c23d0ec9ed4e1bccd7b8b27bc8664cbda17c

See more details on using hashes here.

Provenance

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