Skip to main content

A full featured library for the FRED API web service.

Project description

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

PyPi Version Supported Python Versions Documentation Status Code style: black

pyfredapi is a Python library 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.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

pyfredapi-0.4.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfredapi-0.4.1.tar.gz
  • Upload date:
  • Size: 13.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.4.1.tar.gz
Algorithm Hash digest
SHA256 29f3d7bfa2a9cb680dbe0046e15a5ce5196b827c06b43d0c0f1718fff8137235
MD5 900a2a994609be4798e76d526d7a1a49
BLAKE2b-256 e377f053a76f15fb9d1a25ac1ec0d25a65d306e16a4926366794bf7a910f38a8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyfredapi-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e691275de670e6015f9ebb75c2eedf948934cf67b20be6f9afbd70970d7d258
MD5 ff6e525a69f686db5449517e2c2f53bb
BLAKE2b-256 6b2075c6430c3d21cb62f195f7aba439fed3b6143988274119a93e505a271557

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