dlt.common.configuration.plugins
TCliCommandCompose
How a CLI command merges with other plugins' commands of the same (parent, command).
manager
def manager() -> pluggy.PluginManager
Returns current plugin context
load_setuptools_entrypoints
def load_setuptools_entrypoints(m: pluggy.PluginManager) -> List[str]
Loads entry points in group dlt and instantiates them to initialize plugins.
Returns a list of names of top level modules/packages from detected entry points.
plug_run_context
@hookspec(firstresult=True)
def plug_run_context(
run_dir: Optional[str],
runtime_kwargs: Optional[Dict[str, Any]]) -> Optional[RunContextBase]
Spec for plugin hook that returns current run context.
Arguments:
run_dirstr - An initial run directory of the contextruntime_kwargs- Any additional arguments passed to the context via PluggableRunContext.reload
Returns:
SupportsRunContext- A run context implementing SupportsRunContext protocol
SupportsCliCommand Objects
class SupportsCliCommand(Protocol)
Protocol for defining one dlt cli command.
command
name of the command