Skip to main content
Version: devel

dlt._workspace.deployment.detectors

Module-level framework detectors for interactive job discovery.

Each detector probes an imported module for a known framework singleton (marimo.App, FastMCP, streamlit) and produces a TJobDefinition.

detect_local_module is a separate detector for plain Python modules that should run as batch jobs via __main__. It validates the module is local to the workspace (below or equal to the parent module).

detect_module_job

def detect_module_job(module: ModuleType) -> Optional[TJobDefinition]

View source on GitHub

Detects if module may be a job by running frameworks detectors

is_local_module

def is_local_module(module: ModuleType, parent_module: ModuleType) -> bool

View source on GitHub

Check if module's file is below parent_module's directory and not in a venv.

detect_local_module

def detect_local_module(module: ModuleType,
parent_module: ModuleType) -> Optional[TJobDefinition]

View source on GitHub

Detect a plain local Python module as a batch job.

Only matches modules local to the workspace. Skips modules already detected by framework detectors. Not part of the framework detection chain — called separately.

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.