sshmitm.moduleparser.modules module

class sshmitm.moduleparser.modules.BaseModule(args=None, namespace=None, **kwargs)

Bases: ABC

Parameters:
  • args (Optional[Sequence[str]], default: None) –

  • namespace (Optional[Namespace], default: None) –

  • kwargs (Any) –

classmethod add_module(*args, **kwargs)
Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

classmethod argument_group(title=None, *, description=None)
Parameters:
  • title (Optional[str], default: None) –

  • description (Optional[str], default: None) –

Return type:

_ArgumentGroup

static load_from_entrypoint(name, entry_point_class)
Parameters:
  • name (str) –

  • entry_point_class (Type[BaseModule]) –

Return type:

Optional[Type[BaseModule]]

classmethod modules()
Return type:

List[Tuple[Action, Any]]

classmethod parser()
Return type:

BaseModuleArgumentParser

classmethod parser_arguments()
Return type:

None

class sshmitm.moduleparser.modules.SubCommand(name, subcommand)

Bases: ABC

classmethod config_section()
Return type:

Optional[str]

classmethod docs()
Return type:

Optional[str]

abstract execute(args)
Parameters:

args (Namespace) –

Return type:

None

register_arguments()
Return type:

None