lump.keypress module

class lump.keypress.CharOptions(auto_include_help=None)[source]

Bases: lump.keypress.Options

register(value, callback, description)[source]
class lump.keypress.ComplexOptions(auto_include_help=None)[source]

Bases: lump.keypress.Options

Options with possibility of arguments

run(value, *args)[source]
class lump.keypress.InteractiveTerminalHandler[source]

Bases: object

A handler that reads commands from stdin in a separate process, and handles any actions that may be associated with it.

listen()[source]
register(*args, **kwargs)[source]
start()[source]

Start the process for handling keypresses, this should be the last thing called as it will block further script execution…

class lump.keypress.KeyPressHandler[source]

Bases: lump.keypress.InteractiveTerminalHandler

A handler that reads keypresses from stdin in a separate process, and handles any actions that may be associated with that keypress.

register(*args, **kwargs)[source]
class lump.keypress.Option(input, description, callback)

Bases: tuple

callback

Alias for field number 2

description

Alias for field number 1

input

Alias for field number 0

class lump.keypress.Options(auto_include_help=None)[source]

Bases: object

class NO_ACTION[source]

Bases: object

print_help()[source]

provides a help message of possible options

register(value, callback, description)[source]
run(value, *args)[source]