Module Expr Str ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call NameLoad Num orelse If AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad UnaryOpNot NameLoad Assign NameStore NameLoad TryFinally body TryExcept body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Print Str For NameStore AttributeLoad NameLoad attr body Print BinOpAdd Str NameLoad Expr Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Print BinOpAdd Str Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Print Call AttributeLoad Str attr NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Print BinOpAdd Str Call NameLoad NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str finalbody If UnaryOpNot AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A This file is responsible for coordinating all of OK's protocols. client exceptions ex client.api assignment client.cli.common messages client.utils auth client.utils output client.utils software_update datetime datetime N/A argparse N/A client N/A logging N/A os N/A sys N/A struct N/A LOGGING_FORMAT %(levelname)s  | %(filename)s:%(lineno)d | %(message)s N/A N/A N/A logging basicConfig format LOGGING_FORMAT N/A log N/A N/A logging getLogger client N/A CLIENT_ROOT N/A N/A N/A os path dirname N/A client __file__ parse_input N/A N/A command_input N/A None N/A N/A Parses command line input. N/A parser N/A N/A argparse ArgumentParser description __doc__ formatter_class N/A argparse RawDescriptionHelpFormatter N/A N/A N/A parser add_argument -q --question type str action append help focus on specific questions N/A N/A N/A parser add_argument -u --unlock action store_true help unlock tests interactively N/A N/A N/A parser add_argument -i --interactive action store_true help toggle interactive mode N/A N/A N/A parser add_argument -v --verbose action store_true help print more output N/A N/A N/A parser add_argument --all action store_true help run tests for all questions in config file N/A N/A N/A parser add_argument --submit action store_true help Submit assignment N/A N/A N/A parser add_argument --backup action store_true help Backup assignment reliably N/A N/A N/A parser add_argument --restore action store_true help Restore assignment from an earlier backup N/A N/A N/A parser add_argument --lock action store_true help partial path to directory to lock N/A N/A N/A parser add_argument --score action store_true help Scores the assignment N/A N/A N/A parser add_argument --score-out type N/A N/A argparse FileType w default N/A sys stdout help file to write scores to N/A N/A N/A parser add_argument --config type str help Specify a configuration file N/A N/A N/A parser add_argument --timeout type int default 10 help set the timeout duration for running tests N/A N/A N/A parser add_argument --guidance action store_true help display guidance messages N/A N/A N/A parser add_argument --no-hints action store_true help do not prompt for hints N/A N/A N/A parser add_argument --export action store_true help Downloads all submissions for the current assignment N/A N/A N/A parser add_argument --latest action store_true help When used with --export, downloads latest submissions instead of final submissions N/A N/A N/A parser add_argument --version action store_true help Prints the version number and quits N/A N/A N/A parser add_argument --tests action store_true help display a list of all available tests N/A N/A N/A parser add_argument --debug action store_true help show debug statements N/A N/A N/A parser add_argument --local action store_true help disable any network activity N/A N/A N/A parser add_argument --server type str default ok-server.appspot.com help server address N/A N/A N/A parser add_argument --authenticate action store_true help authenticate, ignoring previous authentication N/A N/A N/A parser add_argument --insecure action store_true help uses http instead of https N/A N/A N/A parser add_argument --no-update action store_true help turns off software updating N/A N/A N/A parser add_argument --update action store_true help checks and performs software update then exits N/A N/A command_input None N/A N/A N/A N/A parser parse_args N/A N/A N/A N/A parser parse_args command_input N/A main N/A N/A N/A N/A N/A Run all relevant aspects of ok.py. N/A args N/A parse_input N/A N/A N/A log setLevel N/A N/A args debug N/A logging DEBUG N/A logging ERROR N/A bit_v N/A 8 N/A N/A struct calcsize P N/A N/A N/A log debug N/A N/A Python bit version: {} format bit_v N/A N/A N/A log debug args N/A N/A args version N/A N/A N/A N/A okpy=={} format N/A client __version__ N/A N/A exit 0 N/A N/A N/A args update N/A N/A N/A N/A Current version: {} format N/A client __version__ N/A did_update N/A N/A software_update check_version N/A args server N/A client __version__ N/A client FILE_NAME timeout 10 N/A N/A exit N/A did_update N/A assign None N/A N/A N/A N/A N/A N/A args authenticate N/A N/A N/A N/A auth authenticate True N/A assign N/A N/A assignment load_assignment N/A args config args N/A N/A args tests N/A N/A Available tests: N/A name N/A assign test_map N/A N/A N/A name N/A N/A exit 0 N/A msgs N/A N/A messages Messages N/A N/A name proto N/A N/A N/A assign protocol_map items N/A N/A N/A N/A log info N/A N/A Execute {}.run() format name N/A N/A N/A proto run msgs N/A N/A msgs N/A timestamp N/A str N/A N/A datetime now N/A N/A N/A N/A ex LoadingException N/A e N/A N/A N/A N/A log warning Assignment could not load exc_info True N/A N/A Error loading assignment:  N/A str e N/A N/A N/A ex AuthenticationException N/A e N/A N/A N/A N/A log warning Authentication exception occurred exc_info True N/A N/A N/A Authentication error: {0} format e N/A N/A N/A ex OkException N/A e N/A N/A N/A N/A log warning General OK exception occurred exc_info True N/A N/A Error:  N/A str e N/A N/A KeyboardInterrupt N/A N/A N/A N/A log info KeyboardInterrupt received. N/A N/A N/A N/A args no_update N/A N/A N/A N/A N/A N/A software_update check_version N/A args server N/A client __version__ N/A client FILE_NAME N/A N/A N/A KeyboardInterrupt N/A N/A N/A assign N/A N/A N/A N/A assign dump_tests N/A N/A N/A __name__ __main__ N/A N/A N/A main