yuuno.comm.commands module

class yuuno.comm.commands.Command[source]

Bases: object

COMMAND_CLASSES = {‘update’: <class ‘yuuno.comm.commands.UpdateCommand’>, ‘request_output’: <class ‘yuuno.comm.commands.OutputRequestCommand’>, ‘response_output’: <class ‘yuuno.comm.commands.OutputResponseCommand’>, ‘request_frame’: <class ‘yuuno.comm.commands.FrameRequestCommand’>, ‘response_frame’: <class ‘yuuno.comm.commands.FrameResponseCommand’>}
command_name = None
classmethod from_message(data)[source]
classmethod parse_msg(message)[source]
classmethod register(name, clazz=None)[source]
to_message()[source]
class yuuno.comm.commands.FrameRequestCommand(id, output, frame)[source]

Bases: yuuno.comm.commands.Command

command_name = ‘request_frame’
to_message()[source]
class yuuno.comm.commands.FrameResponseCommand(id, pil_image)[source]

Bases: yuuno.comm.commands.Command

command_name = ‘response_frame’
classmethod from_message(data)[source]
output
to_message()[source]
class yuuno.comm.commands.OutputRequestCommand(id, output)[source]

Bases: yuuno.comm.commands.Command

command_name = ‘request_output’
to_message()[source]
class yuuno.comm.commands.OutputResponseCommand(id, width, height, length)[source]

Bases: yuuno.comm.commands.Command

command_name = ‘response_output’
classmethod from_clip(id, clip)[source]
classmethod from_message(data)[source]
to_message()[source]
exception yuuno.comm.commands.UnknownCommandException[source]

Bases: KeyError

class yuuno.comm.commands.UpdateCommand(change: yuuno.comm.output_mirror.ChangeSet = None, id=None)[source]

Bases: yuuno.comm.commands.Command

command_name = ‘update’
classmethod from_message(data)[source]
to_message()[source]