covertutils.shells package

Submodules

covertutils.shells.baseshell module

class covertutils.shells.baseshell.BaseShell(handler, **kw)[source]

Bases: cmd.Cmd

The base class of the package. It implements basics, like hooking the covertutils.handlers.basehandler.BaseHandler and giving a handle for further incoming message proccessing.

Defaults = {'debug': None, 'output': None, 'ignore_messages': set([]), 'prompt': '({package} v{version})> '}
__init__(handler, **kw)[source]
addSubShell(stream, subshell_class, subshell_kwargs)[source]
addSubShellLogging(orch_id, stream)[source]
availableStreams()[source]
completedefault(text, line, begidx, endidx)[source]
control_preamp_char = ':'
default(line)[source]
do_EOF(*args)[source]
do_exit(*args)[source]
do_help(line)[source]
do_q(*args)[source]
do_quit(*args)[source]
do_streams(line)[source]
emptyline(*args)[source]
quitPrompt(*args)[source]
ruler = '><'
start(warn=True)[source]
streamCharacterHelp()[source]
streamMenu()[source]
stream_preamp_char = ':'
updatePrompt()[source]
covertutils.shells.baseshell.handlerCallbackHook(on_chunk_function, stream_dict)[source]

Module contents

The shells package provides Shell classes. They can be inherited for extra features but are also ready to be used.