Skip to main content

parsimony-bdp

Banco de Portugal connector — Portuguese macroeconomic, monetary, financial, and external time series via the BPstat (JSON-stat) API.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-bdp.

Connectors

Name Kind Description
bdp_fetch connector Fetch Banco de Portugal observations by domain_id + dataset_id (optional series_ids filter and date window).
enumerate_bdp enumerator Crawl the full BPstat universe (~72 K series across 212 datasets / 65 leaf domains) for catalog discovery.
bdp_search connector Semantic-search the published BdP catalog snapshot; returns ranked series codes.

Install

pip install parsimony-bdp

Pulls in a compatible parsimony 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.

bdp_search reads a published catalog snapshot (default hf://parsimony-dev/bdp). Override the snapshot location with the PARSIMONY_BDP_CATALOG_URL environment variable, or pass catalog_url= at call time.

Quick start

from parsimony_bdp import CONNECTORS

# Discover via bdp_search, then fetch. A search hit's code splits as
# domain_id:dataset_id:series_id.
hits = CONNECTORS["bdp_search"](query="economic activity coincident indicator")
code = hits.raw.iloc[0]["code"]  # e.g. "48:aea9…:12099329"
domain_id, dataset_id, series_id = code.split(":")
result = CONNECTORS["bdp_fetch"](domain_id=int(domain_id), dataset_id=dataset_id, series_ids=series_id)
print(result.raw.head())

For multi-plugin composition (autoloads everything installed):

from parsimony import discover

connectors = discover.load_all()

Catalogs

BPstat has no flat "list all series" endpoint, so enumerate_bdp walks the domain → dataset → series hierarchy. Two things make the crawl both complete and cheap: it paginates the datasets list (domains with >10 datasets would otherwise lose series), and it crawls each dataset at page_size=100&obs_last_n=1 (100 series per page with a one-point observation array) — about 720 lean pages for the whole universe. Each dataset is self-checked against its declared series count. Maintainers then run a bilingual /series/ enrichment pass (English + Portuguese descriptions folded into the catalog description for cross-language recall), build a Catalog snapshot (scripts/build_catalog.py), and push it to the snapshot URL bdp_search reads — the build runs offline as a publish job, never at query time.

Provider

License

See LICENSE.

Metadata

Release files for parsimony-bdp 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parsimony-bdp 0.0.2
File Size Uploaded Provenance
parsimony_bdp-0.0.2.tar.gz 20.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for parsimony-bdp 0.0.2
File Interpreter ABI Platform
parsimony_bdp-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / parsimony_bdp-0.0.2.tar.gz

Download URL parsimony_bdp-0.0.2.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab581d85694ec88e3d23244cc5e2d4bce1d14bd3e58340b45f20b5c69ade0eb4
BLAKE2b-256 checksum
How to use checksums
7ec3aed1d0afe4b1547465df41d5dc5ef8d0b3818cbca5357d7ae8b3d05b12ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / parsimony_bdp-0.0.2-py3-none-any.whl

Download URL parsimony_bdp-0.0.2-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2752eddff5a749c491a05989d46f8156c1142581741d4c6e4e387638234f8bdf
BLAKE2b-256 checksum
How to use checksums
6add9d39fde90fd85be169394d82752126c03ed28330ffddef5f9dc53ae1bf15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Security for parsimony-bdp 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for parsimony_bdp-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page