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.5.0.tar.gz (12.6 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.5.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_boc-0.5.0.tar.gz
  • Upload date:
  • Size: 12.6 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.5.0.tar.gz
Algorithm Hash digest
SHA256 8bc76e85f67c557db0bbc6835f9c9c8b904b01adc981ca0335728dab2a158f8a
MD5 5a1f8458c87064067a11e3d517604939
BLAKE2b-256 119dad018bccd33e08301228327b1bd544ebbb587ed93ba9a68a6946e0e3e68d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_boc-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2526906e983cee851985682cf2e32de3f25f4ce134393ac0c2f91c11a7f92f3f
MD5 f66848211ca1231f651c8acee81b4643
BLAKE2b-256 38704ca52dc11736257c443312c1289ea34e31c6e717d2ae9ab2005847f9482c

See more details on using hashes here.

Provenance

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