Module Expr Str ImportFrom alias Import alias identifier Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Delete SubscriptDel NameLoad Index Str Return NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Dict Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad While AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad TryExcept body If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad Str NameLoad Str NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotIn Str Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad While AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad TryExcept body If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num If BoolOpAnd CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotIn Str Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr BinOpMult BinOpDiv AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr While BoolOpAnd NameLoad CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad Call NameLoad Num Num Call NameLoad Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMult NameLoad Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias ImportFrom alias alias alias ImportFrom alias TryExcept body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareIn NameLoad ListLoad NameLoad NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad ListLoad NameLoad NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str orelse TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Dict If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad orelse Return ListLoad NameLoad Str Str Assign NameStore Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Num keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise ExceptHandler body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return ListLoad NameLoad Str NameLoad orelse Return ListLoad NameLoad Str Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotIn Str Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str NameLoad Assign NameStore Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad Num Num While AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore Num Assign NameStore BoolOpOr CompareGtE NameLoad AttributeLoad NameLoad attr CompareGtE BinOpDiv BinOpSub Call AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad orelse If NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpAdd ListLoad Str NameLoad Str NameLoad orelse Assign NameStore ListLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad While BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num If NameLoad body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotIn Str Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Break Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd ListLoad Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotIn Str Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr TryExcept body With Call NameLoad AttributeLoad NameLoad attr keyword NameLoad body Expr Call NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Print Str Return Num orelse If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Print Str Return Num orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str body Assign NameStore Call NameLoad Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return Num If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body ImportFrom alias Assign NameStore AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr TryExcept body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Print BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Global identifier Assign NameStore NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call NameLoad Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad While NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call NameLoad Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
laikad

Command line program for running the broker and worker processes for the Laika
framework. This program becomes the supervisor process that ensures the broker
and worker processes remain up and alive (replaces those that go missing).
 ConfigParser ConfigParser N/A cPickle pickle N/A functools interruptingcow timeout N/A logging multiprocessing Process optparse OptionParser N/A os random randint N/A signal laikaboss.objectmodel ScanResult ScanObject QuitScanException N/A sys N/A syslog N/A time N/A traceback N/A zlib N/A zmq N/A json N/A base64 distutils.util strtobool N/A SHUTDOWN_GRACE_TIMEOUT_DEFAULT 30 N/A LRU_READY N/A LRU_RESULT_READY N/A LRU_RESULT_QUIT N/A LRU_QUIT N/A REQ_TYPE_PICKLE 1 N/A REQ_TYPE_PICKLE_ZLIB 2 N/A REQ_TYPE_JSON 3 N/A REQ_TYPE_JSON_ZLIB 4 ResultEncoder N/A N/A json JSONEncoder N/A default N/A N/A self obj N/A N/A N/A N/A isinstance obj ScanObject N/A N/A newdict N/A N/A N/A obj __dict__ copy N/A N/A newdict N/A buffer N/A newdict N/A N/A isinstance obj ScanResult N/A N/A res N/A N/A N/A res N/A rootUID N/A obj rootUID N/A N/A res N/A source N/A obj source N/A N/A res N/A level N/A obj level N/A N/A res N/A startTime N/A obj startTime N/A tmpFiles N/A N/A N/A uid sO N/A N/A N/A obj files iteritems N/A N/A N/A tmpFiles N/A N/A str uid sO N/A N/A res N/A files tmpFiles N/A res N/A N/A N/A N/A json JSONEncoder default self obj N/A N/A N/A CONFIGS N/A N/A DEFAULT_CONFIGS N/A numprocs ttl time_ttl brokerfrontend brokerbackend workerconnect async gracetimeout workerpolltimeout log_result dev_config_path sys_config_path laikad_dev_config_path laikad_sys_config_path 4 1000 30 tcp://*:5558 tcp://*:5559 tcp://localhost:5559 False 30 300 False etc/framework/laikaboss.conf /etc/laikaboss/laikaboss.conf etc/laikad/laikad.conf /etc/laikaboss/laikad.conf log_debug N/A N/A message N/A N/A N/A Log a debug message N/A N/A N/A syslog syslog N/A syslog LOG_DEBUG N/A DEBUG (%s) %s N/A N/A N/A os getpid message N/A get_option N/A N/A option default N/A N/A N/A Get the value of an option from the configuration N/A value default N/A N/A option CONFIGS N/A N/A value N/A CONFIGS N/A option N/A N/A N/A option DEFAULT_CONFIGS N/A N/A value N/A DEFAULT_CONFIGS N/A option N/A value N/A shutdown_handler N/A N/A proc signum frame N/A N/A N/A 
    Signal handler for shutting down the given process.

    Arguments:
    proc    --  The process that should be shutdown.

     N/A N/A N/A logging debug Shutdown handler triggered (%d) signum N/A N/A N/A proc shutdown N/A AsyncBroker N/A Process N/A N/A 
    Broker process for receiving asyncronous scan requests. The requests will be
    doled out to the worker processes. The results of the scan will not be
    returned back to the client.
     __init__ N/A N/A self broker_backend_address broker_frontend_address N/A N/A N/A Main constructor N/A N/A N/A N/A super AsyncBroker self __init__ N/A N/A self broker_backend_address broker_backend_address N/A N/A self broker_frontend_address broker_frontend_address N/A N/A self keep_running True N/A shutdown N/A N/A self N/A N/A N/A Shutdown method to be called by the signal handler N/A N/A N/A logging debug Broker: shutdown handler triggered N/A N/A self keep_running False N/A run N/A N/A self N/A N/A N/A Main process logic N/A N/A N/A logging debug Broker: starting up N/A N/A self keep_running True N/A N/A N/A signal signal N/A signal SIGTERM N/A N/A functools partial shutdown_handler self N/A N/A N/A signal signal N/A signal SIGINT N/A N/A functools partial shutdown_handler self N/A context N/A N/A zmq Context 1 N/A backend N/A N/A context socket N/A zmq ROUTER N/A N/A N/A backend bind N/A self broker_backend_address N/A backend_poller N/A N/A zmq Poller N/A N/A N/A backend_poller register backend N/A zmq POLLIN N/A frontend N/A N/A context socket N/A zmq PULL N/A N/A N/A frontend bind N/A self broker_frontend_address N/A frontend_poller N/A N/A zmq Poller N/A N/A N/A frontend_poller register frontend N/A zmq POLLIN N/A N/A N/A frontend_poller register backend N/A zmq POLLIN N/A available_workers N/A N/A N/A self keep_running N/A N/A N/A N/A logging debug Broker: beginning loop
	available: %s N/A str available_workers N/A N/A N/A available_workers N/A N/A msgs N/A dict N/A N/A frontend_poller poll N/A N/A msgs N/A dict N/A N/A backend_poller poll N/A N/A N/A N/A msgs get frontend N/A zmq POLLIN N/A N/A msg N/A N/A frontend recv_multipart N/A worker_id N/A N/A available_workers pop 0 N/A N/A N/A backend send_multipart N/A N/A worker_id worker_id msg N/A N/A N/A N/A msgs get backend N/A zmq POLLIN N/A N/A msg N/A N/A backend recv_multipart N/A worker_id N/A msg N/A 0 N/A status N/A msg N/A 2 N/A N/A N/A status LRU_READY N/A status LRU_RESULT_READY N/A N/A N/A N/A logging debug Broker: worker (%s) ready worker_id N/A N/A worker_id available_workers N/A N/A N/A N/A available_workers append worker_id N/A N/A N/A N/A status LRU_RESULT_QUIT N/A status LRU_QUIT N/A N/A N/A N/A logging debug Broker: worker (%s) quitting worker_id N/A N/A N/A N/A N/A available_workers remove worker_id N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A logging warn Broker: bad worker message received N/A N/A N/A N/A zmq ZMQError N/A zmqerror N/A N/A N/A Interrupted system call N/A str zmqerror N/A N/A N/A N/A logging exception Broker: Received ZMQError N/A N/A N/A N/A logging debug Broker: ZMQ interrupted by shutdown signal N/A N/A N/A logging debug Broker: beginning graceful shutdown sequence N/A N/A N/A logging debug Broker: finished N/A N/A SyncBroker N/A Process N/A N/A 
    Broker process for receiving syncronous scan requests. The requests will be
    doled out to the worker processes. The results of the scan will be
    returned back to the client.
     __init__ N/A N/A self broker_backend_address broker_frontend_address shutdown_grace_timeout N/A SHUTDOWN_GRACE_TIMEOUT_DEFAULT N/A N/A Main constructor N/A N/A N/A N/A super SyncBroker self __init__ N/A N/A self broker_backend_address broker_backend_address N/A N/A self broker_frontend_address broker_frontend_address N/A N/A self shutdown_grace_timeout shutdown_grace_timeout N/A N/A self keep_running True N/A shutdown N/A N/A self N/A N/A N/A Shutdown method to be called by the signal handler N/A N/A N/A logging debug Broker: shutdown handler triggered N/A N/A self keep_running False N/A run N/A N/A self N/A N/A N/A Main process logic N/A N/A N/A logging debug Broker: starting up N/A N/A self keep_running True N/A N/A N/A signal signal N/A signal SIGTERM N/A N/A functools partial shutdown_handler self N/A N/A N/A signal signal N/A signal SIGINT N/A N/A functools partial shutdown_handler self N/A context N/A N/A zmq Context 1 N/A backend N/A N/A context socket N/A zmq ROUTER N/A N/A N/A backend bind N/A self broker_backend_address N/A backend_poller N/A N/A zmq Poller N/A N/A N/A backend_poller register backend N/A zmq POLLIN N/A frontend N/A N/A context socket N/A zmq ROUTER N/A N/A N/A frontend bind N/A self broker_frontend_address N/A frontend_poller N/A N/A zmq Poller N/A N/A N/A frontend_poller register frontend N/A zmq POLLIN N/A N/A N/A frontend_poller register backend N/A zmq POLLIN N/A available_workers N/A N/A working_workers N/A N/A N/A self keep_running N/A N/A N/A N/A logging debug Broker: beginning loop
	available: %s
	working: %s N/A str available_workers N/A str working_workers N/A N/A N/A available_workers N/A N/A msgs N/A dict N/A N/A frontend_poller poll N/A N/A msgs N/A dict N/A N/A backend_poller poll N/A N/A N/A N/A msgs get frontend N/A zmq POLLIN N/A N/A msg N/A N/A frontend recv_multipart N/A worker_id N/A N/A available_workers pop 0 N/A N/A N/A backend send_multipart N/A N/A worker_id msg N/A N/A N/A working_workers append worker_id N/A N/A N/A N/A msgs get backend N/A zmq POLLIN N/A N/A msg N/A N/A backend recv_multipart N/A worker_id N/A msg N/A 0 N/A status N/A msg N/A 2 N/A N/A status LRU_READY N/A N/A N/A N/A logging debug Broker: worker (%s) ready worker_id N/A N/A N/A worker_id available_workers N/A worker_id working_workers N/A N/A N/A N/A available_workers append worker_id N/A N/A N/A status LRU_RESULT_READY N/A N/A N/A N/A logging debug Broker: worker (%s) finished scan, ready worker_id N/A N/A N/A N/A N/A working_workers remove worker_id N/A N/A N/A ValueError N/A N/A N/A N/A N/A frontend send_multipart N/A msg N/A 4 N/A N/A N/A worker_id available_workers N/A worker_id working_workers N/A N/A N/A N/A available_workers append worker_id N/A N/A N/A status LRU_RESULT_QUIT N/A N/A N/A N/A logging debug Broker: worker (%s) finished scan, quitting worker_id N/A N/A N/A N/A N/A working_workers remove worker_id N/A N/A N/A ValueError N/A N/A N/A N/A N/A frontend send_multipart N/A msg N/A 4 N/A N/A N/A status LRU_QUIT N/A N/A N/A N/A logging debug Broker: worker (%s) quitting worker_id N/A N/A N/A N/A N/A available_workers remove worker_id N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A logging debug Broker: bad worker message received N/A N/A N/A N/A zmq ZMQError N/A zmqerror N/A N/A N/A Interrupted system call N/A str zmqerror N/A N/A N/A N/A logging exception Broker: Received ZMQError N/A N/A N/A N/A logging debug Broker: ZMQ interrupted by shutdown signal N/A N/A N/A logging debug Broker: beginning graceful shutdown sequence N/A poll_timeout N/A N/A N/A N/A self shutdown_grace_timeout 3 1000 1 N/A start_time N/A N/A time time N/A N/A working_workers N/A N/A N/A N/A time time start_time N/A self shutdown_grace_timeout N/A N/A N/A N/A logging debug Broker: beginning graceful shutdown loop
	working:%s N/A str working_workers N/A msgs N/A dict N/A N/A backend_poller poll poll_timeout N/A N/A N/A N/A msgs get backend N/A zmq POLLIN N/A N/A msg N/A N/A backend recv_multipart N/A worker_id N/A msg N/A 0 N/A status N/A msg N/A 2 N/A N/A N/A status LRU_RESULT_READY N/A status LRU_RESULT_QUIT N/A N/A N/A N/A logging debug Broker: worker (%s) finished scan worker_id N/A N/A N/A N/A N/A working_workers remove worker_id N/A N/A N/A ValueError N/A N/A N/A N/A N/A frontend send_multipart N/A msg N/A 4 N/A N/A N/A logging debug Broker: finished N/A N/A Worker N/A Process N/A N/A 
    Worker process for performing scans. Returns the result back to the broker.
    Workers give up and quit receiving work after either a count threshold or a
    time to live timeout triggers, whichever comes first.
     __init__ N/A N/A self config_location broker_address max_scan_items ttl logresult poll_timeout shutdown_grace_timeout N/A False 300 SHUTDOWN_GRACE_TIMEOUT_DEFAULT N/A N/A Main constructor N/A N/A N/A N/A super Worker self __init__ N/A N/A self config_location config_location N/A N/A self max_scan_items max_scan_items N/A N/A self ttl ttl N/A N/A self shutdown_grace_timeout shutdown_grace_timeout N/A N/A self keep_running False N/A N/A self broker_address broker_address N/A N/A self identity N/A %04X-%04X N/A N/A randint 0 65536 N/A randint 0 65536 N/A N/A self broker None N/A N/A self broker_poller N/A N/A zmq Poller N/A N/A self poll_timeout N/A poll_timeout 1000 N/A N/A self logresult logresult N/A perform_scan N/A N/A self poll_timeout N/A N/A N/A 
        Wait for work from broker then perform the scan. If timeout occurs, no
        scan is performed and no result is returned.

        Arguments:
        poll_timeout    --  The amount of time to wait for work.

        Returns:
        The result of the scan or None if no scan was performed.
         laikaboss.dispatch Dispatch laikaboss.objectmodel ScanResult ExternalObject ExternalVars laikaboss.util log_result N/A N/A N/A N/A N/A logging debug Worker (%s): checking for work N/A self identity N/A tasks N/A dict N/A N/A N/A self broker_poller poll poll_timeout N/A N/A N/A N/A tasks get N/A self broker N/A zmq POLLIN N/A N/A N/A N/A logging debug Worker (%s): performing scan N/A self identity N/A task N/A N/A N/A self broker recv_multipart N/A client_id N/A task N/A 1 N/A N/A N/A len task 6 N/A N/A request_type N/A task N/A 3 N/A request N/A task N/A 5 N/A N/A request_type N/A REQ_TYPE_PICKLE REQ_TYPE_PICKLE_ZLIB N/A N/A N/A request_type REQ_TYPE_PICKLE_ZLIB N/A N/A externalObject N/A N/A pickle loads N/A N/A zlib decompress request N/A N/A externalObject N/A N/A pickle loads request N/A N/A N/A request_type N/A REQ_TYPE_JSON REQ_TYPE_JSON_ZLIB N/A N/A N/A request_type REQ_TYPE_JSON_ZLIB N/A N/A jsonRequest N/A N/A json loads N/A N/A zlib decompress request N/A N/A jsonRequest N/A N/A json loads request N/A N/A N/A buffer jsonRequest N/A N/A N/A jsonRequest N/A buffer N/A N/A N/A N/A N/A jsonRequest N/A buffer N/A N/A base64 b64decode N/A jsonRequest N/A buffer N/A N/A N/A N/A N/A jsonRequest N/A buffer N/A N/A N/A filename jsonRequest N/A N/A N/A jsonRequest N/A filename N/A N/A N/A ephID jsonRequest N/A N/A N/A jsonRequest N/A ephID N/A N/A N/A uniqID jsonRequest N/A N/A N/A jsonRequest N/A uniqID N/A N/A N/A contentType jsonRequest N/A N/A N/A jsonRequest N/A contentType N/A N/A N/A N/A timestamp jsonRequest N/A N/A N/A jsonRequest N/A timestamp N/A N/A N/A source jsonRequest N/A N/A N/A jsonRequest N/A source N/A N/A N/A origRootUID jsonRequest N/A N/A N/A jsonRequest N/A origRootUID N/A N/A N/A extMetaData jsonRequest N/A N/A N/A jsonRequest N/A extMetaData N/A N/A N/A N/A level jsonRequest N/A N/A N/A jsonRequest N/A level 2 N/A externalVars N/A ExternalVars filename N/A jsonRequest N/A filename ephID N/A jsonRequest N/A ephID uniqID N/A jsonRequest N/A uniqID contentType N/A jsonRequest N/A contentType timestamp N/A jsonRequest N/A timestamp source N/A jsonRequest N/A source origRootUID N/A jsonRequest N/A origRootUID extMetaData N/A jsonRequest N/A extMetaData N/A externalObject N/A ExternalObject buffer N/A jsonRequest N/A buffer level N/A jsonRequest N/A level externalVars externalVars N/A N/A N/A client_id INVALID REQUEST N/A result N/A ScanResult source N/A N/A externalObject externalVars source level N/A externalObject level N/A N/A result startTime N/A N/A time time N/A N/A N/A N/A Dispatch N/A externalObject buffer result 0 externalVars N/A externalObject externalVars N/A N/A N/A QuitScanException N/A N/A N/A N/A N/A N/A exc_type exc_value exc_traceback N/A N/A sys exc_info N/A N/A log_debug N/A exception on file: %s, detailed exception: %s N/A N/A N/A externalObject externalVars filename N/A repr N/A N/A traceback format_exception exc_type exc_value exc_traceback N/A N/A self logresult N/A N/A N/A log_result result N/A N/A request_type REQ_TYPE_PICKLE_ZLIB N/A N/A result N/A N/A zlib compress N/A N/A pickle dumps result N/A pickle HIGHEST_PROTOCOL N/A N/A N/A request_type REQ_TYPE_PICKLE N/A N/A result N/A N/A pickle dumps result N/A pickle HIGHEST_PROTOCOL N/A N/A N/A request_type REQ_TYPE_JSON_ZLIB N/A N/A result N/A N/A zlib compress N/A N/A json dumps result cls ResultEncoder N/A N/A N/A request_type REQ_TYPE_JSON N/A N/A result N/A N/A json dumps result cls ResultEncoder N/A N/A client_id result N/A N/A N/A client_id INVALID REQUEST N/A N/A N/A N/A zmq ZMQError N/A zmqerror N/A N/A N/A Interrupted system call N/A str zmqerror N/A N/A N/A N/A logging exception Worker (%s): Received ZMQError N/A self identity N/A N/A N/A N/A logging debug Worker (%s): ZMQ interrupted by shutdown signal N/A self identity N/A None N/A shutdown N/A N/A self N/A N/A N/A Shutdown method to be called by the signal handler N/A N/A N/A logging debug Worker (%s): shutdown handler triggered N/A self identity N/A N/A self keep_running False N/A N/A QuitScanException N/A run N/A N/A self N/A N/A N/A Main process logic N/A N/A N/A logging debug Worker (%s): starting up N/A self identity laikaboss config laikaboss.dispatch close_modules laikaboss.util init_logging N/A N/A N/A logging debug using config %s N/A self config_location N/A N/A N/A config init path N/A self config_location N/A N/A init_logging N/A N/A log_debug N/A Worker %s started at %s N/A N/A self identity N/A N/A time time N/A N/A self keep_running True N/A perform_grace_check False N/A N/A N/A signal signal N/A signal SIGTERM N/A N/A functools partial shutdown_handler self N/A N/A N/A signal signal N/A signal SIGINT N/A N/A functools partial shutdown_handler self N/A N/A N/A logging debug Worker (%s): connecting broker N/A self identity N/A context N/A N/A zmq Context 1 N/A N/A self broker N/A N/A context socket N/A zmq DEALER N/A N/A N/A N/A self broker setsockopt N/A zmq IDENTITY N/A self identity N/A N/A N/A N/A self broker connect N/A self broker_address N/A N/A N/A N/A self broker_poller register N/A self broker N/A zmq POLLIN N/A N/A N/A N/A self broker send_multipart N/A LRU_READY N/A counter 0 N/A start_time N/A N/A N/A time time N/A randint 1 60 N/A N/A self keep_running N/A N/A N/A N/A result N/A N/A self perform_scan N/A self poll_timeout N/A result N/A N/A counter 1 N/A should_quit N/A N/A counter N/A self max_scan_items N/A N/A N/A N/A N/A time time start_time 60 N/A self ttl N/A N/A self keep_running N/A status LRU_QUIT N/A result N/A N/A should_quit N/A N/A status LRU_RESULT_QUIT N/A N/A status LRU_RESULT_READY N/A N/A should_quit N/A N/A status LRU_QUIT N/A perform_grace_check True N/A N/A status LRU_READY N/A result N/A N/A reply N/A N/A status result N/A N/A reply N/A status N/A tracker N/A N/A N/A self broker send_multipart reply copy False track True N/A N/A N/A N/A tracker done result N/A N/A N/A N/A time sleep 0.1 N/A should_quit N/A N/A N/A self keep_running False N/A N/A N/A N/A zmq ZMQError N/A zmqerror N/A N/A N/A Interrupted system call N/A str zmqerror N/A N/A N/A N/A logging exception Worker (%s): Received ZMQError N/A self identity N/A N/A N/A N/A logging debug Worker (%s): ZMQ interrupted by shutdown signal N/A self identity N/A N/A QuitScanException N/A N/A N/A N/A logging debug Worker (%s): Caught scan termination exception N/A self identity N/A N/A N/A N/A logging debug Worker (%s): beginning graceful shutdown sequence N/A self identity N/A perform_grace_check N/A N/A N/A N/A logging debug Worker (%s): performing grace check N/A self identity N/A N/A N/A result N/A N/A self perform_scan N/A self poll_timeout N/A result N/A N/A reply N/A N/A LRU_RESULT_QUIT result N/A tracker N/A N/A N/A self broker send_multipart reply copy False track True N/A N/A N/A tracker done N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A N/A zmq ZMQError N/A zmqerror N/A N/A N/A Interrupted system call N/A str zmqerror N/A N/A N/A N/A logging exception Worker (%s): Received ZMQError N/A self identity N/A N/A N/A N/A logging debug Worker (%s): ZMQ interrupted by shutdown signal N/A self identity N/A N/A N/A N/A timeout N/A self shutdown_grace_timeout exception QuitScanException N/A N/A N/A close_modules N/A N/A N/A QuitScanException N/A N/A N/A N/A logging debug Worker (%s): Caught scan termination exception during destruction N/A self identity N/A N/A log_debug N/A Worker %s dying after %i objects and %i seconds N/A N/A self identity counter N/A N/A N/A time time start_time N/A N/A N/A logging debug Worker (%s): finished N/A self identity N/A N/A N/A KEEP_RUNNING True main N/A N/A N/A N/A N/A Main program logic. Becomes the supervisor process. N/A parser N/A OptionParser usage usage: %prog [options]
Default settings in config file: laikad.conf N/A N/A N/A parser add_option -d --debug action store_true default False dest debug help enable debug messages to the console. N/A N/A N/A parser add_option -s --scan-config action store type string dest laikaboss_config_path help specify a path for laikaboss configuration N/A N/A N/A parser add_option -c --laikad-config action store type string dest laikad_config_path help specify a path for laikad configuration N/A N/A N/A parser add_option -b --broker-backend action store type string dest broker_backend_address help specify an address for the workers to connect to. ex: tcp://*:5559 N/A N/A N/A parser add_option -f --broker-frontend action store type string dest broker_frontend_address help specify an address for clients to connect to. ex: tcp://*:5558 N/A N/A N/A parser add_option -w --worker-connect action store type string dest worker_connect_address help specify an address for clients to connect to. ex: tcp://localhost:5559 N/A N/A N/A parser add_option -n --no-broker action store_true default False dest no_broker help specify this option to disable the broker for this instance. N/A N/A N/A parser add_option -i --id action store type string dest runas_uid help specify a valid username to switch to after starting as root. N/A N/A N/A parser add_option -p --processes action store type int dest num_procs help specify the number of workers to launch with this daemon N/A N/A N/A parser add_option -r --restart-after action store type int dest ttl help restart worker after scanning this many items N/A N/A N/A parser add_option -t --restart-after-min action store type int dest time_ttl help restart worker after scanning for this many minutes. N/A N/A N/A parser add_option -a --async action store_true default False dest run_async help enable async messages. This will disable any responses back to the client. N/A N/A N/A parser add_option -g --grace-timeout action store type int dest gracetimeout help when shutting down, the timeout to allow workers to finish ongoing scans before being killed N/A N/A options _ N/A N/A parser parse_args N/A config_location /etc/laikaboss/laikad.conf N/A N/A options laikad_config_path N/A N/A config_location N/A options laikad_config_path N/A N/A N/A N/A N/A os path exists N/A options laikad_config_path N/A N/A the provided config path is not valid, exiting N/A 1 N/A N/A N/A N/A N/A os path exists N/A DEFAULT_CONFIGS N/A laikad_dev_config_path N/A N/A config_location N/A DEFAULT_CONFIGS N/A laikad_dev_config_path N/A N/A N/A N/A N/A os path exists N/A DEFAULT_CONFIGS N/A laikad_sys_config_path N/A N/A config_location N/A DEFAULT_CONFIGS N/A laikad_sys_config_path N/A N/A N/A A valid laikad configuration was not found in either of the following locations:
%s
%s N/A N/A DEFAULT_CONFIGS N/A laikad_dev_config_path N/A DEFAULT_CONFIGS N/A laikad_sys_config_path N/A 1 N/A config_parser N/A ConfigParser N/A N/A N/A config_parser read config_location N/A section N/A N/A config_parser sections N/A N/A N/A N/A CONFIGS update N/A dict N/A N/A config_parser items section N/A N/A options laikaboss_config_path N/A N/A laikaboss_config_path N/A options laikaboss_config_path N/A N/A N/A logging debug N/A using alternative config path: %s N/A options laikaboss_config_path N/A N/A N/A N/A N/A os path exists N/A options laikaboss_config_path N/A N/A the provided config path is not valid, exiting N/A 1 N/A N/A N/A N/A N/A os path exists N/A get_option configpath N/A N/A laikaboss_config_path N/A get_option configpath N/A N/A N/A N/A N/A os path exists N/A DEFAULT_CONFIGS N/A dev_config_path N/A N/A laikaboss_config_path N/A DEFAULT_CONFIGS N/A dev_config_path N/A N/A N/A N/A N/A os path exists N/A DEFAULT_CONFIGS N/A sys_config_path N/A N/A laikaboss_config_path N/A DEFAULT_CONFIGS N/A sys_config_path N/A N/A N/A A valid framework configuration was not found in either of the following locations:
%s
%s N/A N/A DEFAULT_CONFIGS N/A dev_config_path N/A DEFAULT_CONFIGS N/A sys_config_path N/A 1 N/A N/A options num_procs N/A N/A num_procs N/A options num_procs N/A N/A num_procs N/A int N/A get_option numprocs N/A N/A options ttl N/A N/A ttl N/A options ttl N/A N/A ttl N/A int N/A get_option ttl N/A N/A options time_ttl N/A N/A time_ttl N/A options time_ttl N/A N/A time_ttl N/A int N/A get_option time_ttl N/A N/A options broker_backend_address N/A N/A broker_backend_address N/A options broker_backend_address N/A N/A broker_backend_address N/A get_option brokerbackend N/A N/A options broker_frontend_address N/A N/A broker_frontend_address N/A options broker_frontend_address N/A N/A broker_frontend_address N/A get_option brokerfrontend N/A N/A options worker_connect_address N/A N/A worker_connect_address N/A options worker_connect_address N/A N/A worker_connect_address N/A get_option workerconnect N/A N/A options gracetimeout N/A N/A gracetimeout N/A options gracetimeout N/A N/A gracetimeout N/A int N/A get_option gracetimeout N/A N/A options run_async N/A N/A async True N/A N/A async N/A strtobool N/A get_option async N/A logresult N/A strtobool N/A get_option log_result N/A runas_uid None N/A runas_gid None N/A N/A options runas_uid N/A pwd getpwnam N/A runas_uid N/A N/A getpwnam N/A options runas_uid pw_uid N/A runas_gid N/A N/A getpwnam N/A options runas_uid pw_gid N/A N/A options debug N/A N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A N/A N/A runas_uid N/A N/A N/A N/A os setgid runas_gid N/A N/A N/A os setuid runas_uid N/A N/A N/A OSError N/A N/A N/A Unable to set user ID to %i, defaulting to current user runas_uid shutdown N/A N/A signum frame N/A N/A N/A Signal handler for shutting down supervisor gracefully N/A N/A N/A logging debug Supervisor: shutdown handler triggered N/A KEEP_RUNNING N/A KEEP_RUNNING False N/A N/A N/A N/A signal signal N/A signal SIGTERM shutdown N/A N/A N/A signal signal N/A signal SIGINT shutdown N/A broker_proc None N/A N/A N/A options no_broker N/A N/A async N/A N/A broker_proc N/A AsyncBroker broker_backend_address broker_frontend_address N/A N/A broker_proc N/A SyncBroker broker_backend_address broker_frontend_address gracetimeout N/A N/A N/A broker_proc start N/A workers N/A N/A _ N/A range num_procs N/A N/A worker_proc N/A Worker laikaboss_config_path worker_connect_address ttl time_ttl logresult N/A int N/A get_option workerpolltimeout gracetimeout N/A N/A N/A worker_proc start N/A N/A N/A workers append worker_proc N/A KEEP_RUNNING N/A N/A N/A N/A N/A options no_broker N/A N/A N/A broker_proc is_alive N/A N/A async N/A N/A broker_proc N/A AsyncBroker broker_backend_address broker_frontend_address N/A N/A broker_proc N/A SyncBroker broker_backend_address broker_frontend_address gracetimeout N/A N/A N/A broker_proc start N/A dead_workers N/A N/A worker_proc workers N/A N/A N/A N/A N/A worker_proc is_alive N/A N/A N/A N/A dead_workers append worker_proc N/A worker_proc dead_workers N/A N/A N/A N/A workers remove worker_proc N/A new_proc N/A Worker laikaboss_config_path worker_connect_address ttl time_ttl logresult N/A int N/A get_option workerpolltimeout gracetimeout N/A N/A N/A new_proc start N/A N/A N/A workers append new_proc N/A N/A N/A worker_proc join N/A N/A N/A time sleep 5 N/A N/A N/A logging debug Supervisor: beginning graceful shutdown sequence N/A N/A N/A logging info Supervisor: giving workers %d second grace period gracetimeout N/A N/A N/A time sleep gracetimeout N/A N/A N/A logging info Supervisor: terminating workers N/A worker_proc workers N/A N/A N/A N/A worker_proc is_alive N/A N/A N/A N/A os kill N/A worker_proc pid N/A signal SIGKILL N/A worker_proc workers N/A N/A N/A N/A worker_proc join N/A N/A N/A options no_broker N/A N/A N/A N/A broker_proc is_alive N/A N/A N/A N/A os kill N/A broker_proc pid N/A signal SIGKILL N/A N/A N/A broker_proc join N/A N/A N/A logging debug Supervisor: finished N/A N/A N/A __name__ __main__ N/A N/A N/A main