Skip to main content

Banque de France connector for the parsimony framework

Project description

parsimony-bdf

Banque de France connector — French macroeconomic, monetary, and financial time series via the Webstat (Opendatasoft) API.

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

Connectors

Name Kind Description
bdf_fetch connector Fetch a Banque de France time series by SDMX key (e.g. EXR.M.USD.EUR.SP00.E), optionally bounded by start_period/end_period.
enumerate_bdf enumerator Stream the full BdF series universe (~41.6k series across 45 dataflows) for catalog discovery.
bdf_search connector Semantic-search the published BdF catalog snapshot; returns ranked series codes.

Install

pip install parsimony-bdf

Pulls in parsimony-core>=0.7,<0.8 automatically. Verify discovery:

python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"

Configuration

The Webstat API requires a free API key. Register at https://developer.webstat.banque-france.fr/, then set:

export BDF_API_KEY="<your-key>"

The key is sent in the Authorization: Apikey <KEY> header (the literal word Apikey, not Bearer). It is declared as a secret (stripped from provenance) and never appears in request logs. Supply it via the env var above, or bind it explicitly:

from parsimony_bdf import load
connectors = load(api_key="<your-key>")   # binds the key across the bundle

A missing key fails fast with UnauthorizedError naming BDF_API_KEY.

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

Quick start

from parsimony_bdf import load

connectors = load(api_key="<your-key>")
result = connectors["bdf_fetch"](key="EXR.M.USD.EUR.SP00.E")
print(result.data.head())

For multi-plugin composition (autoloads everything installed):

from parsimony import discover
connectors = discover.load_all()

Catalogs

The Webstat series dataset is a single flat queryable table, so enumerate_bdf discovers the entire universe in two requests: one series/exports/json export (~41.6k series) plus one webstat-datasets call for the 45 dataflow stub rows. Each series row carries English + French titles and a topic breadcrumb, folded into the catalog description for cross-language recall. Maintainers build a Catalog snapshot from it (scripts/build_catalog.py) and push it to the snapshot URL bdf_search reads — the build runs offline as a publish job, never at query time. Quota: 10,000 requests/day.

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_bdf-0.0.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

parsimony_bdf-0.0.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_bdf-0.0.1.tar.gz.

File metadata

  • Download URL: parsimony_bdf-0.0.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_bdf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bbf36b581a8aa8e52f3fd93cc5f4f9b53fb2fd43f82486f8f38b963be3b5092d
MD5 1d54f7174e889d29117c078d6eaf8d63
BLAKE2b-256 68c46bd706b9c4b88ab4f7b5367fa421cd812e62fe2802be048c8e8642a82cda

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_bdf-0.0.1.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_bdf-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: parsimony_bdf-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_bdf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ef979346f38f922ad814476b59f1aba3075010db1a36c104ff571bc0dc10165
MD5 1ba02b5107585aad8eb0c0517c00df4a
BLAKE2b-256 9d518726ac9be069893392065be5e5250f4ae6c8b14fcc179aa66dc716bf84cf

See more details on using hashes here.

Provenance

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