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
- Homepage: https://www.banque-france.fr
- Webstat portal: https://webstat.banque-france.fr
- Developer portal: https://developer.webstat.banque-france.fr/
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf36b581a8aa8e52f3fd93cc5f4f9b53fb2fd43f82486f8f38b963be3b5092d
|
|
| MD5 |
1d54f7174e889d29117c078d6eaf8d63
|
|
| BLAKE2b-256 |
68c46bd706b9c4b88ab4f7b5367fa421cd812e62fe2802be048c8e8642a82cda
|
Provenance
The following attestation bundles were made for parsimony_bdf-0.0.1.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_bdf-0.0.1.tar.gz -
Subject digest:
bbf36b581a8aa8e52f3fd93cc5f4f9b53fb2fd43f82486f8f38b963be3b5092d - Sigstore transparency entry: 1971042261
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
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@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ef979346f38f922ad814476b59f1aba3075010db1a36c104ff571bc0dc10165
|
|
| MD5 |
1ba02b5107585aad8eb0c0517c00df4a
|
|
| BLAKE2b-256 |
9d518726ac9be069893392065be5e5250f4ae6c8b14fcc179aa66dc716bf84cf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_bdf-0.0.1-py3-none-any.whl -
Subject digest:
8ef979346f38f922ad814476b59f1aba3075010db1a36c104ff571bc0dc10165 - Sigstore transparency entry: 1971042276
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
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@517cb5874f97ffede7738611ed75bb3ed27e26a0 -
Trigger Event:
workflow_dispatch
-
Statement type: