paths_cli.plugin_management.CLIPluginLoader

class paths_cli.plugin_management.CLIPluginLoader(plugin_type, search_path)

Abstract object for CLI plugins

The overall approach involves 5 steps, each of which can be overridden:

  1. Find candidate plugins (which must be Python modules)

  2. Load the namespaces associated into a dict (nsdict)

  3. Based on those namespaces, validate that the module is a plugin

  4. Get the associated command name

  5. Return an OPSPlugin object for each plugin

Details on steps 1, 2, and 4 differ based on whether this is a filesystem-based plugin or a namespace-based plugin.

__init__(plugin_type, search_path)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(plugin_type, search_path)

Initialize self.