dlt.common.configuration.specs.pluggable_run_context
RunContextBase Objects
class RunContextBase(ABC)
Describes where dlt looks for settings, pipeline working folder. Implementations must be picklable.
__init__
@abstractmethod
def __init__(run_dir: Optional[str], *args: Any, **kwargs: Any)
An explicit run_dir, if None, run_dir should be auto-detected by particular implementation
name
@property
@abstractmethod
def name() -> str
Name of the run context. Entities like sources and destinations added to registries when this context
is active, will be scoped to it. Typically corresponds to Python package name ie. dlt.
uri
@property
@abstractmethod
def uri() -> str
Uniquely identifies the context. By default it is a combination of run_dir and runtime_kwargs
to create file:// uri
global_dir
@property
@abstractmethod
def global_dir() -> str
Directory in which global settings are stored ie ~/.dlt/