Skip to main content

FRED_Loader

A Python wrapper around the Federal Reserve FRED API that abstracts away series IDs, resampling rules, and macro scoring behind a clean, human-readable interface. Installs as fred-loader, for anyone who pulls macroeconomic data into pandas.

Install

pip install fred-loader

Or from a checkout of this repository: pip install -e ..

Quickstart

from fred_loader import Config, pull_fred

cfg = Config(filename="fred_master.csv", output_path="./data")
df = pull_fred(cfg)

Cherry-pick series categories:

from fred_loader import INFLATION, LABOR, RATES, Config, pull_fred

cfg = Config(
    filename="policy_inputs.csv",
    output_path="./data",
    series={**INFLATION, **LABOR, **RATES},
)
df = pull_fred(cfg)

Learning it

Worked notebooks live in research-kit/notebooks, alongside census-loader and otter, because the examples worth reading use this library with the others rather than on its own.

01-get-set-up assumes you have seen pandas once and gets you from nothing to a chart of something true. 03-two-sources-one-question puts FRED and Census data in one model and deals with the fact that they disagree about time.

They replaced a demo notebook that showed the library working. These show a piece of work, and the library happens to be how it gets done.

Project structure

src/fred_loader/
  __init__.py       # public API re-exports
  utils.py          # Config
  load.py           # pull_fred entry point
  series.py         # series catalog: categories and subcategories
  macro_scores.py   # scoring layer: score, available_scores
  py.typed          # PEP 561: ships the inline annotations to type checkers

Metadata

Release files for fred-loader 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fred-loader 0.1.2
File Size Uploaded
fred_loader-0.1.2.tar.gz 36.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fred-loader 0.1.2
File Interpreter ABI Platform
fred_loader-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 60.9 kB

Release files / fred_loader-0.1.2.tar.gz

Download URL fred_loader-0.1.2.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1d4b2e2d7488b36a258258624c128bc060aba38498e1069afbeb2f2e4e3f912f
BLAKE2b-256 checksum
How to use checksums
f5d53d122c0794294fa28ca8a372183b9634fa68eabcd9c99839f28b4a464753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / fred_loader-0.1.2-py3-none-any.whl

Download URL fred_loader-0.1.2-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5aac53d6bf4767520af4f1a79c08fa96638e3e506eb85c5cbbcde2bb41968a67
BLAKE2b-256 checksum
How to use checksums
9bb0d7d4bce1c0e8e3d22a1abdf018dff7f7afc779b965e8ffe6d55e2148eab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page