Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr TryExcept body TryExcept body Assign NameStore SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str body Print NameLoad Expr Call AttributeLoad NameLoad attr Num orelse If CompareIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num keyword NameLoad Print NameLoad orelse Raise Call NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Print AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Str Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
forecast.py
author: Jonathan Tsai <hello@jontsai.com>

Python interface to Forecast API

Usage:
    python forecast.py LATITUDE LONGITUDE
    python forecast.py -t TIMESTAMP LATITUDE LONGITUDE
Examples:
    $ python forecast.py 37.8267 -122.423


 N/A getopt N/A json N/A requests N/A os N/A sys N/A urllib keys FORECAST_API_KEY N/A FORECAST_URL https://api.forecast.io/forecast/%(api_key)s/%(latitude)s,%(longitude)s N/A FORECAST_DATPOINT_URL https://api.forecast.io/forecast/%(api_key)s/%(latitude)s,%(longitude)s,%(timestamp)s Usage N/A Exception N/A __init__ N/A N/A self msg N/A N/A N/A N/A self msg msg N/A N/A main N/A N/A argv N/A None N/A N/A OPT_STR ht: N/A OPT_LIST N/A help --timestamp= N/A timestamp None N/A N/A argv None N/A N/A argv N/A sys argv N/A N/A N/A N/A N/A progname N/A argv N/A 0 N/A N/A opts args N/A N/A getopt getopt N/A argv N/A 1 OPT_STR OPT_LIST N/A N/A N/A N/A getopt error N/A msg N/A N/A N/A Usage msg N/A N/A o a opts N/A N/A N/A o N/A -h --help N/A N/A __doc__ N/A N/A N/A sys exit 0 N/A N/A N/A o N/A -t --timestamp= N/A N/A timestamp a N/A N/A N/A len args 2 N/A N/A forecast N/A get_forecast N/A args N/A 0 N/A args N/A 1 timestamp timestamp N/A forecast N/A N/A N/A Usage Incorrect arguments N/A N/A N/A Usage N/A err N/A N/A N/A sys stderr N/A err msg N/A N/A sys stderr for help use --help N/A 3.14159 N/A get_forecast N/A N/A latitude longitude timestamp N/A None N/A N/A values N/A api_key latitude longitude FORECAST_API_KEY latitude longitude N/A N/A timestamp None N/A N/A api_url FORECAST_URL N/A N/A api_url FORECAST_DATPOINT_URL N/A N/A values N/A timestamp timestamp N/A url N/A api_url values N/A response N/A N/A requests get url N/A data N/A N/A json loads N/A response text N/A data N/A N/A N/A __name__ __main__ N/A N/A N/A main