Banco de Portugal connector for the parsimony framework
Project description
parsimony-bdp
Banco de Portugal connector — Portuguese macroeconomic, monetary, and financial time series via the BPstat API.
Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-bdp.
Connectors
| Name | Kind | Description |
|---|---|---|
bdp_fetch |
fetch | Fetch a Banco de Portugal time series by domain ID + dataset ID (with optional series filter and date range). |
enumerate_bdp |
enumerator | Enumerate BdP datasets across all leaf domains (~216 datasets across 77 domains). |
Install
pip install parsimony-bdp
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 BPstat API is open and unauthenticated.
Quick start
import asyncio
from parsimony_bdp import CONNECTORS
async def main():
connectors = CONNECTORS.bind_env()
# Discover available datasets first via enumerate_bdp, then fetch:
result = await connectors["bdp_fetch"](domain_id=1, dataset_id="<dataset_id>")
print(result.data.head())
asyncio.run(main())
For multi-plugin composition (autoloads everything installed):
from parsimony import discover
connectors = discover.load_all().bind_env()
Provider
- Homepage: https://www.bportugal.pt
- BPstat portal: https://bpstat.bportugal.pt
- API docs: https://bpstat.bportugal.pt/data/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_bdp-0.5.0.tar.gz.
File metadata
- Download URL: parsimony_bdp-0.5.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736ac811e877d67cefcb67452ac4e0176368e2629be64a88ac37efa976a1e407
|
|
| MD5 |
617782994d087ec0c676d18c06b5d38e
|
|
| BLAKE2b-256 |
100771479b341a2a731e2f45ddb9379dfa4a0f4f64d4c06825931d9a6f668ec5
|
Provenance
The following attestation bundles were made for parsimony_bdp-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_bdp-0.5.0.tar.gz -
Subject digest:
736ac811e877d67cefcb67452ac4e0176368e2629be64a88ac37efa976a1e407 - Sigstore transparency entry: 1453258360
- 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_bdp-0.5.0-py3-none-any.whl.
File metadata
- Download URL: parsimony_bdp-0.5.0-py3-none-any.whl
- Upload date:
- Size: 18.5 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 |
ec0fd33e4962aa3174585822d41d9f0928fe27651455c1d8cd74d6f37ab1da81
|
|
| MD5 |
6ba5be2ea4627b33ac9212b267b95f30
|
|
| BLAKE2b-256 |
b36b4730559bb620ec483a954ae1577b53113f6e0e3732af79e6a23995026dbe
|
Provenance
The following attestation bundles were made for parsimony_bdp-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_bdp-0.5.0-py3-none-any.whl -
Subject digest:
ec0fd33e4962aa3174585822d41d9f0928fe27651455c1d8cd74d6f37ab1da81 - Sigstore transparency entry: 1453258389
- 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: