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.3

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.3
File Size Uploaded
fred_loader-0.1.3.tar.gz 37.0 kB Details

Built distribution (wheel)

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

Total release size: 61.8 kB

Release files / fred_loader-0.1.3.tar.gz

Download URL fred_loader-0.1.3.tar.gz
Size 37.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5d999dd6e592e83bba518218b322759c0df1e5b5761eb59142e2eaa743aff686
BLAKE2b-256 checksum
How to use checksums
b64a58796bf434c04e4367470f8c9aa720a78b4805f0f015139193699fc0266b
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 Oct 17, 2026.

Transparency log

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

Download URL fred_loader-0.1.3-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
252020f4626167e90fe9bbda05a09076f425606d71ff917919140d512b53e633
BLAKE2b-256 checksum
How to use checksums
ab25d7849ba5601220bfa89441ab50b4e46e8f7ed1611bf9ba6b7f417a87f6aa
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 Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

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