Skip to main content

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

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_bdp-0.5.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

parsimony_bdp-0.5.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

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

Hashes for parsimony_bdp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 736ac811e877d67cefcb67452ac4e0176368e2629be64a88ac37efa976a1e407
MD5 617782994d087ec0c676d18c06b5d38e
BLAKE2b-256 100771479b341a2a731e2f45ddb9379dfa4a0f4f64d4c06825931d9a6f668ec5

See more details on using hashes here.

Provenance

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

Hashes for parsimony_bdp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec0fd33e4962aa3174585822d41d9f0928fe27651455c1d8cd74d6f37ab1da81
MD5 6ba5be2ea4627b33ac9212b267b95f30
BLAKE2b-256 b36b4730559bb620ec483a954ae1577b53113f6e0e3732af79e6a23995026dbe

See more details on using hashes here.

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

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