Quata

Usage:

quata get [--csv] PATH [PARAMS...]
quata pretty PATH [PARAMS...]
quata see PATH [PARAMS...]
quata url PATH [PARAMS...]
quata save [--csv] FILE PATH [PARAMS...]
quata (-h|--help|--version)

Commands:

get
  Downloads data and prints it to screen as it. 
pretty
  Downloads data and prints it as a prettified JSON output.
see
  Downloads data and prints it with a colored output.
url
  Shows the URL constructed from the request.
save
  Downloads data and saves it to a file.

Parameters:

PATH:
  This is the Quandl API path without the query string.
  For example: datasets/WIKI/AAPL.
PARAMS:
  An optional list of query string parameters, separated by a space, to 
  send with the request. Each parameter should be in the format of 
  key:value, for example: page:2 per_page:10
FILE:
  Path to the output file.

Flags:

--csv
  When this flag is provided, the data will be converted to CSV before
  it is displayed or saved. Note that this works only with endpoints that
  have a 'data' attribute.

Environment Variables:

QUANDL_KEY=y0urAP1k3y
  Set Your Quandl api key. This variable is optional.
QUANDL_CACHE_LIFE=360
  Set the number of seconds to consider the cache fresh. This variable
  it optional.
QUANDL_CACHE_DIR=./cache
  Set the cache directory. This variable is optional.
  If both QUANDL_CACHE_DIR and QUANDL_CACHE_LIFE are not set, requests
  will not be cached.

Examples:

quata get databases per_page:2
quata get datasets/WIKI/AAPL
quata get --csv datasets/WIKI/AAPL rows:5
quata get datasets source_code:WIKI query:* 
quata get datasets query:oil
quata url datasets/WIKI/AAPL rows:5
quata save --csv output.csv datasets/WIKI/AAPL rows:5
quata save output.json datasets/WIKI/AAPL rows:5
quata pretty datasets "query:qqq index" per_page:2