A fully featured FRED API client library for Python.
Project description
pyfredapi - Python API for the Federal Reserve Economic Data (FRED)
pyfredapi
is a Python API for accessing the FRED API web service provided by the Federal Reserve Bank of St. Louis. pyfredapi
makes it easy to retrieve economic data from FRED and ALFRED. Requests to the api can be customized according to the parameters made available by the web service.
pyfredapi
aims to be a full featured api for the FRED API web service. pyfredapi
provides convenient methods for requesting data series, and can return data as a pandas dataframe of as json.
Installation
pip install fredapi
Basic Usage
Before using pyfredapi
and must have a 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 FredApi
# api key set as environment variable
client = FredApi()
# api key passed to initializer
client = FredApi(api_key = "my_api_key")
# get data for the S&P500
client.get_series_data("SP500")
Documentation
Coming soon
Contributing
Coming soon
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyfredapi-0.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5871431c1fb213325da22f0a12e10cd619af4c9f275bda0d94d014300d73c589 |
|
MD5 | 8ee4540b915a288a52d84e48d92378d4 |
|
BLAKE2b-256 | 742f20d8aff109fae092fa3fb065efff24dc16efd4f11fc112ee898be5ef56e2 |