Skip to main content

A fully featured FRED API client library for Python.

Project description

pyfredapi - Python client for the Federal Reserve Economic Data (FRED) API

PyPi Version Supported Python Versions Documentation Status Code style: black

pyfredapi is a Python client for the FRED API web service. pyfredapi covers all the FRED api endpoints and can return data as a pandas dataframe or json. Checkout the docs to learn more.

Installation

pip install pyfredapi

Basic Usage

Before using pyfredapi and must have an API key to the FRED API web service. You can apply for one for free on the FRED website.

You can either be set as the environment variable FRED_API_KEY, or pass it to the api_key parameters when initializing pyfredapi.

from pyfredapi import FredSeries

# api key set as environment variable
client = FredSeries()

# api key passed to initializer
client = FredSeries(api_key = "my_api_key")

# get GDP data
client.get_series("GDP")

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

pyfredapi-0.4.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

pyfredapi-0.4.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfredapi-0.4.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.1 Darwin/21.6.0

File hashes

Hashes for pyfredapi-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4ce9bafcabef06b84bb031a57c804e0ea6d492eb14db135e022e9d424882a3b7
MD5 76b1a227f5495bccaf5c9171548d8aa3
BLAKE2b-256 ccb8c985bc06c3112bedff4068d41f88ca6971ea0778f98e5e4c320812bd80cd

See more details on using hashes here.

Provenance

File details

Details for the file pyfredapi-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyfredapi-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.1 Darwin/21.6.0

File hashes

Hashes for pyfredapi-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7435e7c3dc8487b57a695d5b7338446c6811abda58fca0ca1c469b3818d9c57
MD5 6eed7b7e89a02e3c5b1dd6336e1457bc
BLAKE2b-256 780feeed5b09b850c079ad383f7da11aa7933e05f116823689f15d6e70aa3215

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page