Package: federal-reserve-python-api
United States Federal Reserve APITable of ContentsCurrent VersionOverviewSetupUsageSupport These ProjectsCurrent VersionVersion:0.1.0OverviewWhat is FRED? Short for Federal Reserve Economic Data, FRED is
an online database consisting of hundred of thousands of economic
data time series from scores of national, international, public, and
private sources. FRED, created and maintained by the Research Department at
the Federal Reserve Bank of St. Louis, goes far beyond simply providing data:
It combines data with a powerful mix of tools that help the user understand, interact
with, display, and disseminate the data. In essence, FRED helps users tell their
data stories. The purpose of this article is to guide the potential (or current)
FRED user through the various aspects and tools of the database.This library will give you the capability to query data from FRED using Python. To
get started using this library all you need is an API key. To register for an API
Key please go thedevelopers resourcesprovided by Fred.SetupSetup - Requirements Install:For this particular project, you only need to install the dependencies, to use the project. The dependencies
are listed in therequirements.txtfile and can be installed by running the following command:pip install -r requirements.txtAfter running that command, the dependencies should be installed.Setup - Local Install:If you are planning to make modifications to this project or you would like to access it
before it has been indexed onPyPi. I would recommend you either install this project
ineditablemode or do alocal install. For those of you, who want to make modifications
to this project. I would recommend you install the library ineditablemode.If you want to install the library ineditablemode, make sure to run thesetup.pyfile, so you can install any dependencies you may need. To run thesetup.pyfile,
run the following command in your terminal.pip install -e .If you don't plan to make any modifications to the project but still want to use it across
your different projects, then do a local install.pip install .This will install all the dependencies listed in thesetup.pyfile. Once done
you can use the library wherever you want.Setup - PyPi Install:Toinstallthe library, run the following command from the terminal.pip install federal-reserve-python-apiSetup - PyPi Upgrade:Toupgradethe library, run the following command from the terminal.pip install --upgrade federal-reserve-python-apiUsageHere is a simple example of using thefredlibrary to query some category
data.frompprintimportpprintfromconfigparserimportConfigParserfromfred.clientimportFederalReserveClient# Initialize the Parser.config=ConfigParser()# Read the file.config.read('config/config.ini')# Get the specified credentials.api_key=config.get('main','api_key')# Initialize the Client.fred_client=FederalReserveClient(api_key=api_key)# Initialize the Categories Service.categories_service=fred_client.categories()# Grab a category by it's ID.pprint(categories_service.get_category(category_id='125'))Support These ProjectsPatreon:Help support this project and future projects by donating to myPatreon Page. I'm
always looking to add more content for individuals like yourself, unfortuantely some of the APIs I would require me to
pay monthly fees.YouTube:If you'd like to watch more of my content, feel free to visit my YouTube channelSigma Coding.Questions:If you have questions please feel free to reach out to me atcoding.sigma@gmail.com