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.4.0.tar.gz (17.9 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.4.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_bdp-0.4.0.tar.gz
  • Upload date:
  • Size: 17.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 adc0af3d307b66282f3324a62037ae42fff89291e56b580bea9678803674c979
MD5 a0205bfe746c3392a9c8d0bc7dbeea26
BLAKE2b-256 7e4b163db0b6ae8963d59e353e5d78c7c978153b5e3d085159b194d651280e92

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_bdp-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46e8e152641826bbb1613e097786b54b7c9266451bcc7c3d7f54532c88d72441
MD5 cb5de9bf19f4bdb4374fe6ffb0db9934
BLAKE2b-256 91c116d551c9f97cc9feb69ab14d469e7e6593751af75ec425a013a02ecc8950

See more details on using hashes here.

Provenance

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