nat.front_ends.console.console_front_end_plugin#

Attributes#

Classes#

ConsoleFrontEndPlugin

Helper class that provides a standard way to create an ABC using

Functions#

prompt_for_input_cli(...)

A simple CLI-based callback.

Module Contents#

logger#
async prompt_for_input_cli(
question: nat.data_models.interactive.InteractionPrompt,
) nat.data_models.interactive.HumanResponse#

A simple CLI-based callback. Takes question as str, returns the typed line as str.

class ConsoleFrontEndPlugin(full_config)#

Bases: nat.front_ends.simple_base.simple_front_end_plugin_base.SimpleFrontEndPluginBase[nat.front_ends.console.console_front_end_config.ConsoleFrontEndConfig]

Helper class that provides a standard way to create an ABC using inheritance.

Initializes the FrontEndBase object with the specified NAT configuration.

Parameters#

full_configConfig

The configuration object to use for the front end.

auth_flow_handler#
async pre_run()#
async run_workflow(session_manager: nat.runtime.session.SessionManager)#