pimlico.cli.shell.base module

exception pimlico.cli.shell.base.ShellError[source]

Bases: exceptions.Exception

class pimlico.cli.shell.base.DataShell(data, commands, *args, **kwargs)[source]

Bases: cmd.Cmd

Terminal shell for querying datatypes.

cmdloop(intro=None)[source]
default(line)[source]

We use this to handle most commands, including the default fallback, which is to execute Python

do_EOF(line)[source]

Exits the shell

emptyline()[source]

Don’t repeat the last command (default): ignore empty lines

postloop()[source]
preloop()[source]
prompt = '>>> '
class pimlico.cli.shell.base.ShellCommand[source]

Bases: object

Base class used to provide commands for exploring a particular datatype. A basic set of commands is provided for all datatypes, but specific datatype classes may provide their own, by overriding the shell_commands attribute.

execute(shell, *args, **kwargs)[source]
commands = []
help_text = None