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.3.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

pyfredapi-0.3.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfredapi-0.3.0.tar.gz
  • Upload date:
  • Size: 10.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 08a715f67c647e8e104b981800067e86689be21b167f2ccf5247d363f1eb5a79
MD5 2e1a36ee26ea06554b5f249715c16869
BLAKE2b-256 75b721e5e7bfe4a9cec4a7b22e72189cc9891cc29393291f93f686cdc0ff387b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyfredapi-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 170a281223f26e925184f45647076d27ba5cf7fb40ff0c92b4acd8123ea82d32
MD5 168cfea979a91e44ba06a39dd96c62da
BLAKE2b-256 e448f088867fe4ae94702f276ebd08208732f373f2e9a54a51729e75da44197d

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