Giter VIP home page Giter VIP logo

fredio's Introduction

FREDio

Simple scripts to work with FRED Data

pullfred.py

pullfred.py is a simple script that can be run from the command to download data from FRED in either XML (default) or JSON formats supproted by the FRED API. The script requires python 3.

Usage

The minimal function call is python3 pullfred.py <series name> <api_key>. The script defines and calls a single function download_fred. The script will by default attempt to download an XML file with the data for the FRED series <series name> and save it as <series name>.xml.

The function call itself can be edited in the script to change the date range pulled, the units, the frequency, the aggreation method, and the file type downloaded. If none of these are specified then the script downloads the exact data that you would have gotten if you had gone to the FRED website and searched for the series name and openened the default series which is usually the highest frequency series available. If the user changes the file_type argument to json, then a JSON file will be downloaded and the output file will have a .json suffix in place of a .xml suffix.

API Key

api keys can be accessed from the FRED website.

read_fred.jl

read_fred.jl contains a function that can be used to read in XML data from FRED that is downloaded by pullfred.pdsa. XML file is read in as a DataFrame object

project files

The julia code has some dependencies that can be automatically loaded by using Pkg

fredio's People

Contributors

joe5saia avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.