powermolecli.lib package

Submodules

powermolecli.lib.helpers module

Import all parts from helpers here.

powermolecli.lib.helpers.on_application_start(config)[source]

Starts the application that the user declared in the configuration file.

powermolecli.lib.helpers.on_send_command(instructor)[source]

Sends commands to destination host and receives the response.

powermolecli.lib.helpers.on_send_files(instructor)[source]

Sends file(s) to destination host and receives the response.

powermolecli.lib.helpers.parse_config_file(config_file_path)[source]

Parses the configuration file to a (dictionary) object.

Establishes a connection to target destination host via intermediaries by starting various objects.

This function also passes the instantiated objects to the StateManager, which will stop the Tunnel and Instructor after a KeyboardInterrupt (by the user or by the program (in COMMAND and FILE mode)).

Parameters:
  • state (StateManager) – An instantiated StateManager object.

  • transfer_agent (TransferAgent) – An instantiated TransferAgent object.

  • tunnel (Tunnel) – An instantiated Tunnel object.

  • bootstrap_agent (BootstrapAgent) – An instantiated BootstrapAgent object.

  • instructor (Instructor) – An instantiated Assistant object.

  • debug (bool) – if True enable debugging mode

powermolecli.lib.helpers.show_menu(config, instructor)[source]

Shows a number of options.

Most of these options invoke a method in the Instructor().

powermolecli.lib.logging module

Main code for logging.

Module contents

Import all parts from minitorcli.lib here.