msa.builtins.echo package

Submodules

msa.builtins.echo.events module

class msa.builtins.echo.events.EchoCommandEvent[source]

Bases: msa.builtins.command_registry.events.CommandEvent

A command event handled by EchoHandler, containing the message to be echoed

msa.builtins.echo.handlers module

class msa.builtins.echo.handlers.EchoHandler(loop: asyncio.events.AbstractEventLoop, event_queue: asyncio.queues.Queue, logger: logging.Logger, config: Optional[Dict[KT, VT]] = None)[source]

Bases: msa.core.event_handler.EventHandler

Checks for EchoCommnadEvents and displays the text provided in them

echo_command(event)[source]

Displays th text provided in the EchoCommandEvent

handle()[source]

An abstract method which must be overwritten. Once the system is started, the handle method will be called repeatedly until the system shuts down. The handler must be non-blocking.

init()[source]

An optional initialization hook, may be used for executing setup code before all handlers have benn fully started.

print(text)[source]

temportary work around to allow unit testing, should instead create TTy out event

Module contents