hook.shell

class immp.hook.shell.ShellHook(name, config, host)

Bases: immp.core.hook.ResourceHook

Hook to start a Python shell when a message is received.

class immp.hook.shell.AsyncShellHook(name, config, host)

Bases: immp.core.hook.ResourceHook

Hook to launch an asynchonous console alongside a Host instance.

buffer

collections.deque – Queue of recent messages, the length defined by the buffer config entry.

last

(.SentMessage, .Message) tuple – Most recent message received from a connected plug.