j5.backends.console.console module

Console helper classes.

class j5.backends.console.console.Console(descriptor: str, print_function: Callable = <built-in function print>, input_function: Callable = <built-in function input>)[source]

Bases: object

A helper class for console backends.

info(message: str) → None[source]

Print information to the user.

read(prompt: str, return_type: Optional[Type[T]] = <class 'str'>) → T[source]

Get a value of type ‘return_type’ from the user.