Skip to main content
Version: devel

dlt.common.configuration.plugins

manager

def manager() -> pluggy.PluginManager

View source on GitHub

Returns current plugin context

load_setuptools_entrypoints

def load_setuptools_entrypoints(m: pluggy.PluginManager) -> List[str]

View source on GitHub

Scans setuptools distributions that are path or have name starting with dlt 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]

View source on GitHub

Spec for plugin hook that returns current run context.

Arguments:

  • run_dir str - An initial run directory of the context
  • runtime_kwargs - Any additional arguments passed to the context via PluggableRunContext.reload

Returns:

  • SupportsRunContext - A run context implementing SupportsRunContext protocol

SupportsCliCommand Objects

class SupportsCliCommand(Protocol)

View source on GitHub

Protocol for defining one dlt cli command

command

name of the command

help_string

the help string for argparse

description

the more detailed description for argparse, may inlcude markdown for the docs

docs_url

the default docs url to be printed in case of an exception

configure_parser

def configure_parser(parser: argparse.ArgumentParser) -> None

View source on GitHub

Configures the parser for the given argument

execute

def execute(args: argparse.Namespace) -> None

View source on GitHub

Executes the command with the given arguments

plug_cli

@hookspec()
def plug_cli() -> SupportsCliCommand

View source on GitHub

Spec for plugin hook that returns current run context.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.