opzet.dispatcher module
basic package for the program.
-
class Dispatcher[source]
Bases: opzet.object.Object
the dispatcher delegates the workload to the Runners. Runner gets instantiated when needed.
-
cc = 'none'
-
collect(zelf, thrs, sleep=10.0)[source]
-
default = ''
-
exit(zelf)[source]
-
put(zelf, *args, **kwargs)[source]
-
stop(zelf, name='')[source]
-
class Task(zelf, *args, **kwargs)[source]
Bases: threading.Thread
the working unit of OPZET.
-
local = <_thread._local object at 0x7f0e6efb3d00>
-
put(zelf, *args, **kwargs)[source]
put arguments/kwargs to the Task.
-
run(zelf, *args, **kwargs)[source]
loop that executes the (function, ding) pairs.
-
stop(zelf, *args, **kwargs)[source]
-
bots(bot, event)[source]
-
locked(func, *args, **kwargs)[source]
-
register(bot)[source]