Module Expr Str Assign NameStore Str ImportFrom alias identifier ImportFrom alias identifier Import alias identifier TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Import alias ImportFrom alias alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Str ImportFrom alias FunctionDef arguments args NameParam defaults body Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return TupleLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad Lambda arguments args NameParam defaults CompareIn Str NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Print Repr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Print NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse If AttributeLoad AttributeLoad NameLoad attr attr body Print Str AttributeLoad AttributeLoad NameLoad attr attr orelse Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse If AttributeLoad AttributeLoad NameLoad attr attr body Print Str AttributeLoad AttributeLoad NameLoad attr attr orelse Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias alias Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad Call NameLoad AttributeLoad NameLoad attr Index Str Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Print Str AttributeLoad NameLoad attr orelse Print Str Print Str Print Str Call AttributeLoad NameLoad attr Print Str Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad attr decorator_list If CompareEq NameLoad Str body Import alias Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A This implements a command line interpreter (CLI) for the moves API.

OAuth data is kept in a JSON file, for easy portability between different
programming languages.

Currently, the initialization of OAuth requires the user to copy a URL
into a web browser, then copy the URL of the resulting page back to this
script.
 N/A copyright 
Copyright (c) 2013 Sam Denton <samwyse@gmail.com>
All Rights Reserved.

Licensed under the Academic Free License (AFL 3.0)
http://opensource.org/licenses/afl-3.0
 cmd Cmd _Cmd pprint pprint _pprint N/A json _json N/A N/A moves MovesClient N/A N/A N/A ImportError N/A N/A sys os.path join normpath N/A N/A N/A N/A sys path insert 0 N/A normpath N/A join N/A N/A sys path N/A 0 .. moves MovesClient _parse_line N/A N/A f N/A N/A N/A itertools functools wraps partition N/A N/A pred iterable filter filterfalse tee N/A N/A itertools ifilter N/A itertools ifilterfalse N/A itertools tee N/A N/A Use a predicate to partition entries into false entries and true entries N/A N/A t1 t2 N/A tee iterable N/A N/A N/A filterfalse pred t1 N/A filter pred t2 N/A wrapper N/A N/A self line N/A N/A N/A N/A args kwds N/A partition N/A N/A N/A s N/A N/A = s N/A N/A line split N/A kwds N/A dict N/A N/A N/A item split = N/A item kwds N/A N/A f self args kwds N/A N/A wraps f N/A wrapper N/A MovesCmd N/A _Cmd N/A N/A cache_file moves_cli.json default N/A N/A self line N/A N/A N/A Echos the arguments and exits the interpreter. N/A N/A argv N/A do_quit N/A N/A self line N/A N/A N/A Exits the interpreter. N/A True N/A do_copyright N/A N/A self line N/A N/A N/A Displays copyright and licensing information. N/A copyright N/A do_client_id N/A N/A self line N/A N/A N/A Displays or sets the value. N/A line N/A N/A N/A N/A self mc client_id line N/A N/A N/A N/A self mc client_id N/A N/A client_id = N/A N/A self mc client_id N/A N/A The client id is not set. N/A do_client_secret N/A N/A self line N/A N/A N/A Displays or sets the value. N/A line N/A N/A N/A N/A self mc client_secret line N/A N/A N/A N/A self mc client_secret N/A N/A client_secret = N/A N/A self mc client_secret N/A N/A The client secret is not set. N/A do_access_token N/A N/A self line N/A N/A N/A Displays or sets the value. urlparse urlparse parse_qs N/A mc N/A self mc N/A line N/A N/A parts N/A urlparse line N/A code N/A N/A N/A parse_qs N/A parts query N/A code N/A 0 N/A N/A mc access_token N/A N/A mc get_oauth_token code N/A N/A mc access_token line N/A N/A N/A mc access_token N/A N/A access_token = N/A mc access_token N/A N/A The access token is not set. N/A Enter the URL below in a web browser and follow the instructions. N/A N/A N/A mc build_oauth_url N/A Once the web browser redirects, copy the complete URL and N/A use it to re-run this command. N/A do_load N/A N/A self filename N/A N/A N/A Loads the API state from a JSON file. N/A N/A filename N/A N/A filename N/A self cache_file N/A N/A open filename rb fp N/A N/A N/A N/A N/A N/A self mc __dict__ update N/A N/A _json load fp N/A do_save N/A N/A self filename N/A N/A N/A Saves the API state into a JSON file. N/A N/A filename N/A N/A filename N/A self cache_file N/A N/A open filename wb fp N/A N/A N/A N/A _json dump N/A N/A self mc __dict__ fp N/A do_get N/A N/A self N/A path params N/A N/A Issues an HTTP GET request
Syntax:
	get path... [key=value]...
 N/A N/A _pprint N/A N/A N/A self mc get N/A N/A / join path params N/A _parse_line do_post N/A N/A self N/A path params N/A N/A Issues an HTTP POST request
Syntax:
	post path... [key=value]...
 N/A N/A _pprint N/A N/A N/A self mc post N/A N/A / join path params N/A _parse_line do_tokeninfo N/A N/A self line N/A N/A N/A Displays information about the access token. N/A N/A _pprint N/A N/A N/A self mc tokeninfo N/A do_examples N/A N/A self line N/A N/A N/A Displays example commands. N/A These are some commands to try.
 get user profile
 get user summary daily pastDays=7
 get user activities daily pastDays=5
 get user places daily pastDays=3
 get user storyline daily pastDays=2
 N/A onecmd N/A N/A self line N/A N/A N/A N/A N/A N/A N/A _Cmd onecmd self line N/A N/A N/A Exception N/A error N/A N/A N/A %s: %s N/A N/A N/A type error __name__ error N/A preloop N/A N/A self N/A N/A N/A N/A self mc N/A MovesClient N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A N/A MovesCmd cmdloop N/A N/A N/A __name__ __main__ N/A N/A sys N/A N/A main N/A sys argv