Skip to main content

FRED (Federal Reserve Economic Data) connector for the parsimony framework

Project description

parsimony-fred

FRED (Federal Reserve Economic Data) connector for the parsimony framework.

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

What it does

Once installed, this plugin is discovered automatically and exposes the following connectors:

Connector Kind Tool-tagged Description
fred_search connector yes Keyword search across FRED series (id, title, units, frequency).
fred_fetch connector Fetch observation-level data for a FRED series by series_id.

Install

pip install parsimony-fred

Pulls in parsimony-core>=0.4,<0.5 automatically.

Configuration

export FRED_API_KEY="<your-key>"

Get a key at https://fred.stlouisfed.org/docs/api/api_key.html.

Verify discovery:

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

Quick start

import asyncio
from parsimony_fred import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["fred_fetch"](series_id="UNRATE")
    print(result.data.head())

asyncio.run(main())

For multi-plugin composition:

from parsimony import discover
connectors = discover.load_all().bind_env()

To expose tool-tagged connectors over MCP, install the standalone server: https://github.com/ockham-sh/parsimony-mcp.

Catalog discovery

FRED ships a native search endpoint, so this plugin does not publish an embedded catalog. Use fred_search for keyword discovery — it calls /series/search directly against the FRED API.

Development

uv sync --extra dev
uv run pytest

Release-blocking conformance test: uv run pytest tests/test_conformance.py.

Provider

License

Apache-2.0 — 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_fred-0.4.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

parsimony_fred-0.4.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for parsimony_fred-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ca5d9e68e5bd7dc0fa4fa7c440185c3e678e7dd2390bbde37c83e1641ddf9df6
MD5 46e5628e6b42492d471f8934b7c7316f
BLAKE2b-256 0e006a2c84a27193b223391474f7b662ca9cecbb2a3aec77301b2d50cf47bbdb

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for parsimony_fred-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ca63b876e9582ad33ea044b56db522cdcb8af15fdf27d7d0a98a9a1864160ad
MD5 98b4a10bff898a63bb719555e8f98835
BLAKE2b-256 b6791aa9c952fd52812291d57c30aa6e65eedc9b057766a5e6c99d7b7681ce0b

See more details on using hashes here.

Provenance

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