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.5.0.tar.gz (15.1 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.5.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_bdf-0.5.0.tar.gz
  • Upload date:
  • Size: 15.1 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.5.0.tar.gz
Algorithm Hash digest
SHA256 fcb541456092db08207b1824b3ce09bd6b73529fbf6fa98ac002bb00d9816eaf
MD5 945962d139563819b0d0bce34bd4f864
BLAKE2b-256 d5d8becdd4ae9bd2ee478c28ddd5f58787cf81636c4deddc86f83cf412e17ceb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: parsimony_bdf-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ed1bd82a8639a80c00b5d9c611671b007229795101d4779faf0454fece688a
MD5 d38ece0889429361b4ace129e065f30e
BLAKE2b-256 6ef3a800cf84878616c2500caea78f6082a95930f6abe762982d4b2c56a308be

See more details on using hashes here.

Provenance

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