Console module

class Console.Command(app)

Bases: object

Main Command class

execute(cmd)

execute If this command gets executed this will be called.

Parameters

cmd (str) – The rest of the command for parameters

class Console.Console(app)

Bases: object

buildConsole()

buildConsole Design of the console

execute(cmd)

execute Executes the command

Parameters

cmd (str) – The command to execute

getCommands(module)

getCommands Gets all the commands from a module

Parameters

module (python module) – A module

Returns

list of command objects

Return type

list of command objects

show_Console()

show_Console Shows the console

class Console.ConsoleLogHandler(app)

Bases: logging.StreamHandler

emit(record)

Emit a record.

If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.