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 SDMX-based Webstat API.

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

Connectors

Name Kind Description
bdf_fetch fetch Fetch a Banque de France SDMX time series by key (e.g. EXR.M.USD.EUR.SP00.E).
enumerate_bdf enumerator Enumerate all BdF datasets via the SDMX catalogue endpoint.

Install

pip install parsimony-bdf

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

Set the following environment variable:

export BANQUEDEFRANCE_KEY="<your-key>"

Register for a free key at https://developer.webstat.banque-france.fr/. The key is sent via the X-IBM-Client-Id header (IBM API Connect gateway).

Quick start

import asyncio
from parsimony_bdf import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["bdf_fetch"](key="EXR.M.USD.EUR.SP00.E")
    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_bdf-0.4.0.tar.gz (14.7 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.4.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_bdf-0.4.0.tar.gz
  • Upload date:
  • Size: 14.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 50537fdbf92d825dd9a1a2500ba2b4a17d86892a6e33b2402fe25894d7860abe
MD5 03c322be1d2bcf4e2282ec68a3ce14d5
BLAKE2b-256 175600c3f29045525bf3134ee8478c7db2bc288292429365552ed7f339f401f3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_bdf-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.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_bdf-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 130a3b859f9823edaa0c4d81b089e56d1c2f572b1bf811ec2d3f0dbf2b01bdeb
MD5 cb9ac48facb1e1605c98c6d37fbdbf46
BLAKE2b-256 cb3a92e9b2ee239222750a9ce1a499fab89f234504270bf24351e0c03aaf68d8

See more details on using hashes here.

Provenance

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