Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return BinOpMod Str NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore IfExp CompareEq AttributeLoad NameLoad attr Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Str Raise Call AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr orelse Raise Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryFinally body While AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Continue If Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad Assign NameStore Dict orelse Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad NameLoad If NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr finalbody Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list
N/A N/A 
Event listener based on unix domain sockets or win32 named pipes

 __future__ print_function N/A abc N/A logging multiprocessing.connection Listener Client N/A os N/A socket threading Thread chalmers errors chalmers config N/A sys N/A log N/A N/A logging getLogger __name__ N/A N/A N/A WindowsError N/A N/A N/A NameError N/A N/A WindowsError SystemError N/A N/A N/A basestring N/A N/A N/A NameError N/A N/A basestring str get_addr N/A N/A name N/A N/A N/A 
    Get the address to the multiprocessing.connection.Listener or Client objects in
    a platform dependent way
    
    :param name: the name of the chalmers program to connect to
     N/A N/A N/A os name nt N/A N/A N/A \\.\pipe\chalmers:%s name N/A N/A socdir N/A N/A N/A os path join N/A N/A config dirs user_data_dir sockets N/A N/A N/A N/A N/A os path isdir socdir N/A N/A N/A N/A os makedirs socdir N/A sock_path N/A N/A N/A os path join socdir N/A %s name N/A N/A N/A N/A sys version_info major 3 N/A N/A sock_path N/A N/A sock_path encode N/A sock_path N/A EventDispatcher N/A object N/A N/A 
    This dispatches events listened to from the Listener
    
     N/A __metaclass__ N/A abc ABCMeta N/A FAMILY N/A N/A N/A os name nt AF_PIPE AF_UNIX __init__ N/A N/A self N/A N/A N/A N/A self _running False N/A N/A self _listener None N/A listener N/A N/A self N/A N/A N/A Return the multiprocessing Listener object N/A N/A N/A self _listener None N/A N/A N/A N/A N/A self FAMILY AF_UNIX N/A N/A N/A os path exists N/A self addr N/A N/A N/A N/A os unlink N/A self addr N/A N/A N/A N/A N/A log debug N/A Listening to events from: %s N/A self addr N/A N/A self _listener N/A Listener N/A self addr family N/A self FAMILY N/A N/A N/A N/A socket error N/A err N/A N/A N/A N/A err errno 48 N/A N/A msg Unix socket '%s' appears to be in use. Please stop this program. N/A N/A N/A errors ChalmersError N/A msg N/A self addr N/A N/A N/A N/A self _listener N/A property start_listener N/A N/A self N/A N/A N/A Start listening to the listener in a new thread N/A N/A self _running True N/A N/A self listener N/A N/A self _listener_thread N/A Thread target N/A self listen N/A N/A N/A N/A self _listener_thread start N/A name N/A N/A self N/A N/A N/A chalmers N/A N/A abc abstractproperty addr N/A N/A self N/A N/A N/A N/A get_addr N/A self name N/A property dispatch_exitloop N/A N/A self N/A N/A N/A Exit the listener N/A N/A self _running False N/A dispatch_ping N/A N/A self N/A N/A N/A return the pid of this process N/A N/A N/A os getpid N/A is_listening N/A N/A self N/A N/A N/A N/A self _running N/A property listen N/A N/A self N/A N/A N/A Listen to incoming clients until
        self._running is set to False
         N/A l N/A self listener N/A N/A self _running True N/A N/A N/A N/A self _running N/A N/A N/A N/A log debug Accept connection N/A c N/A N/A l accept N/A N/A N/A action N/A N/A c recv N/A N/A N/A EOFError N/A N/A N/A N/A c close N/A N/A N/A isinstance action basestring N/A N/A args N/A N/A kwargs N/A N/A N/A args N/A N/A action get args N/A N/A kwargs N/A N/A N/A action get kwargs N/A N/A action N/A N/A action get action N/A N/A N/A log info N/A Dispatch action "%s" action N/A method N/A getattr self N/A dispatch_%s action None N/A method N/A N/A N/A N/A result N/A method args kwargs N/A N/A N/A Exception N/A err N/A N/A N/A N/A log exception err N/A N/A N/A c send N/A error message True N/A Exception in action %s - %s N/A action err N/A N/A N/A N/A c send N/A error message result False ok result N/A N/A N/A N/A log warn N/A No action %s action N/A N/A N/A c send N/A error message True N/A No action %s action N/A N/A N/A c close N/A N/A N/A self _listener None N/A N/A N/A l close N/A N/A N/A log info Exiting event loop N/A send N/A N/A self action N/A args kwargs N/A N/A Dispatch an action to a Dispatcher N/A N/A send_action N/A self name action args kwargs N/A N/A send_action N/A N/A name action N/A args kwargs N/A N/A 
    Send an action to a listener
    the listener must have a 'dispatch_{action}' method
    or this will raise a ChalmersError
     N/A addr N/A get_addr name N/A N/A N/A c N/A Client addr family N/A EventDispatcher FAMILY N/A N/A N/A N/A N/A socket error WindowsError N/A N/A N/A N/A errors ConnectionError N/A Could not connect to chalmers program %s name N/A N/A N/A N/A N/A c send N/A action args kwargs action args kwargs N/A res N/A N/A c recv N/A N/A N/A res get error N/A N/A N/A N/A errors ChalmersError N/A N/A res get message Unknown error N/A N/A N/A res get result N/A N/A N/A N/A c close N/A