A full featured library for the FRED API web service.
Project description
pyfredapi - Python library for the Federal Reserve Economic Data (FRED) API
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
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
pyfredapi-0.4.1.tar.gz
(13.8 kB
view hashes)
Built Distribution
pyfredapi-0.4.1-py3-none-any.whl
(19.1 kB
view hashes)
Close
Hashes for pyfredapi-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e691275de670e6015f9ebb75c2eedf948934cf67b20be6f9afbd70970d7d258 |
|
MD5 | ff6e525a69f686db5449517e2c2f53bb |
|
BLAKE2b-256 | 6b2075c6430c3d21cb62f195f7aba439fed3b6143988274119a93e505a271557 |