Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults TupleLoad Str Num TupleLoad Str Num Str kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad Str attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad TryFinally body While NameLoad body Assign NameStore Yield AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If CompareEq NameLoad NameLoad body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Break Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A serving.py IP socket server module

 N/A sys N/A os N/A time N/A datetime N/A io collections deque aid.sixing * aid.odicting odict globaling * aid aiding aio.udp PeerUdp N/A tasking aid.consoling getConsole N/A console N/A getConsole Server N/A N/A tasking Tasker N/A N/A Server Task Patron Registry Class for IP comms

       Usage:
     __init__ N/A N/A self sha dha prefix N/A N/A 54321 N/A localhost 54321 ./ kw N/A N/A Initialize instance.

           iherited instance attributes
           .name = unique name for machine
           .store = data store

           .period = desired time in seconds between runs must be non negative, zero means asap
           .stamp = time when tasker last ran sucessfully not interrupted by exception
           .status = operational status of tasker
           .desire = desired control asked by this or other taskers
           .done = tasker completion state True or False
           .runner = generator to run tasker

           instance attributes
           .sha = (host, port) serving listen socket address
           .dha = destination address (host, port)
           .server = non blocking udp socket server object
           .prefix = log directory path prefix
           .path = log directory path
           .logPath = log file path
           .logFile = log file

         N/A N/A N/A N/A super Server self __init__ kw N/A N/A self sha sha N/A N/A self server N/A PeerUdp ha sha N/A N/A self dha dha N/A N/A self prefix prefix N/A N/A self path N/A N/A self logPath N/A N/A self logFile None N/A reinit N/A N/A self sha dha prefix N/A None None None kw N/A N/A Re initializes certain attributes for reuse

         N/A N/A N/A N/A super Server self reinit kw N/A N/A sha None N/A N/A N/A self sha sha N/A N/A N/A self server N/A N/A N/A self server N/A PeerUdp ha sha path N/A N/A N/A self server ha sha N/A N/A dha None N/A N/A N/A self dha dha N/A N/A prefix None N/A N/A N/A self prefix prefix N/A createPaths N/A N/A self prefix N/A ./ N/A N/A creates log directory path
           creates physical directories on disk
         N/A dt N/A N/A N/A datetime datetime now N/A N/A self path N/A N/A {0}_{1}_{2:04d}{3:02d}{4:02d}_{5:02d}{6:02d}{7:02d} format prefix N/A self name N/A dt year N/A dt month N/A dt day N/A dt hour N/A dt minute N/A dt second N/A N/A N/A N/A self path N/A N/A N/A os path abspath N/A self path N/A N/A N/A N/A N/A os path exists N/A self path N/A N/A N/A N/A os makedirs N/A self path N/A N/A N/A OSError N/A ex N/A N/A N/A N/A console terse N/A N/A Error: creating server log directory '{0}'
 format ex N/A False N/A N/A N/A console concise N/A N/A      Created Server {0} Log Directory = '{1}'
 format N/A self name N/A self path N/A N/A self logPath N/A N/A N/A os path join N/A self path N/A N/A {0}.txt format log N/A N/A self logPath N/A N/A N/A os path abspath N/A self logPath N/A True N/A reopen N/A N/A self N/A N/A N/A Closes if open then opens     N/A N/A N/A N/A self createPaths prefix N/A self prefix N/A N/A False N/A N/A N/A N/A self reopenLog N/A N/A False N/A N/A N/A N/A N/A self server reopen N/A N/A False N/A True N/A close N/A N/A self N/A N/A N/A N/A N/A N/A N/A self server close N/A N/A N/A self closeLog N/A reopenLog N/A N/A self N/A N/A N/A closes if open then reopens
         N/A N/A N/A self closeLog N/A N/A N/A N/A self logFile N/A open N/A self logPath a+ N/A N/A N/A IOError N/A ex N/A N/A N/A N/A console terse N/A N/A Error: creating server log file '{0}
 format ex N/A N/A self logFile None N/A False N/A N/A N/A console concise N/A N/A      Created Server Log file {0}
 format N/A self logPath N/A True N/A closeLog N/A N/A self N/A N/A N/A  close self.file if open except stdout
         N/A N/A N/A self logFile N/A N/A N/A self logFile closed N/A N/A N/A N/A N/A self logFile close N/A N/A self logFile None N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self logFile N/A N/A N/A self logFile closed N/A N/A N/A N/A N/A self logFile flush N/A N/A N/A os fsync N/A N/A N/A self logFile fileno N/A log N/A N/A self msg N/A N/A N/A Called by runner   N/A stamp N/A N/A self store stamp N/A N/A N/A N/A N/A N/A self logFile write N/A %0.4f	%s
 N/A N/A float stamp msg N/A N/A N/A TypeError N/A ex N/A N/A N/A N/A console terse N/A N/A {0}
 format ex N/A N/A ValueError N/A ex N/A N/A N/A N/A console terse N/A N/A {0}
 format ex N/A makeRunner N/A N/A self N/A N/A N/A generator factory function to create generator to run this monitor
         N/A N/A N/A console profuse N/A N/A      Making Server Task Runner {0}
 format N/A self name N/A N/A self status STOPPED N/A N/A self desire STOP N/A N/A self done True N/A N/A N/A True N/A N/A control N/A N/A self status N/A N/A N/A console profuse N/A N/A 
     Iterate Server {0} with control = {1} status = {2}
 format N/A self name N/A N/A ControlNames get control Unknown N/A N/A StatusNames get N/A self status Unknown N/A N/A control RUN N/A N/A N/A N/A N/A self status STARTED N/A N/A self status RUNNING N/A N/A N/A N/A console profuse N/A N/A      Running Server {0} ...
 format N/A self name N/A N/A input sa N/A N/A N/A self server receive N/A sa N/A N/A N/A shost sport sa N/A output N/A result N/A N/A N/A self server send output N/A self dha N/A N/A self status RUNNING N/A N/A N/A N/A console profuse N/A N/A      Need to Start Server {0}
 format N/A self name N/A N/A self desire START N/A N/A N/A control READY N/A N/A N/A N/A console profuse N/A N/A      Readying Server {0} ...
 format N/A self name N/A N/A self status READIED N/A N/A self desire START N/A N/A N/A control START N/A N/A N/A N/A console terse N/A N/A      Starting Server {0} ...
 format N/A self name N/A N/A N/A self reopen N/A N/A N/A self desire RUN N/A N/A self status STARTED N/A N/A self done False N/A N/A N/A self desire STOP N/A N/A self status STOPPED N/A N/A self done True N/A N/A N/A control STOP N/A N/A N/A N/A N/A self status RUNNING N/A N/A self status STARTED N/A N/A N/A N/A console terse N/A N/A      Stopping Server {0} ...
 format N/A self name N/A N/A N/A self close N/A N/A self desire STOP N/A N/A self status STOPPED N/A N/A self done True N/A N/A N/A N/A console terse N/A N/A      Server {0} not started or running.
 format N/A self name N/A N/A N/A control ABORT N/A N/A N/A N/A console profuse N/A N/A      Aborting Server {0} ...
 format N/A self name N/A N/A N/A self close N/A N/A self desire ABORT N/A N/A self status ABORTED N/A N/A N/A self desire ABORT N/A N/A self status ABORTED N/A N/A N/A console profuse N/A N/A      Aborting Server {0}, bad control = {1}
 format N/A self name N/A CommandNames N/A control N/A N/A N/A self close N/A N/A N/A self stamp N/A N/A self store stamp N/A N/A N/A N/A console profuse N/A N/A      Exception causing Abort Server {0} ...
 format N/A self name N/A N/A self desire ABORT N/A N/A self status ABORTED N/A N/A N/A self close N/A N/A