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
- Homepage: https://www.bankofcanada.ca
- API docs: https://www.bankofcanada.ca/valet/docs
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bc76e85f67c557db0bbc6835f9c9c8b904b01adc981ca0335728dab2a158f8a
|
|
| MD5 |
5a1f8458c87064067a11e3d517604939
|
|
| BLAKE2b-256 |
119dad018bccd33e08301228327b1bd544ebbb587ed93ba9a68a6946e0e3e68d
|
Provenance
The following attestation bundles were made for parsimony_boc-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_boc-0.5.0.tar.gz -
Subject digest:
8bc76e85f67c557db0bbc6835f9c9c8b904b01adc981ca0335728dab2a158f8a - Sigstore transparency entry: 1453262771
- 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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2526906e983cee851985682cf2e32de3f25f4ce134393ac0c2f91c11a7f92f3f
|
|
| MD5 |
f66848211ca1231f651c8acee81b4643
|
|
| BLAKE2b-256 |
38704ca52dc11736257c443312c1289ea34e31c6e717d2ae9ab2005847f9482c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_boc-0.5.0-py3-none-any.whl -
Subject digest:
2526906e983cee851985682cf2e32de3f25f4ce134393ac0c2f91c11a7f92f3f - Sigstore transparency entry: 1453262817
- 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: