Skip to content

DomoDataflowAnalyzer

DomoDataflowAnalyzer

Analyze scripting tiles and suggest Magic ETL alternatives.

This module inspects Python scripts from Magic ETL "Scripting" tiles and suggests equivalent DomoDataflow actions that avoid data science tiles when possible. It is intentionally heuristic and lightweight (AST-based) so it can run locally without LLMs. LLM-based refinements can be added later using the LangGraph multi-agent pattern.

DomoDataflowAnalyzer

Analyze scripting tiles and suggest Magic ETL substitutions.

Usage

analyzer = DomoDataflowAnalyzer() result = analyzer.analyze(script_str)

OperationDetection dataclass

OperationDetection(
    kind: str,
    description: str,
    columns: list[str] = list(),
    functions: list[str] = list(),
    confidence: float = 0.5,
    detail: dict[str, Any] = dict(),
)

Represents an operation discovered inside the scripting tile.

ScriptAnalysisResult dataclass

ScriptAnalysisResult(
    operations: list[OperationDetection] = list(),
    suggestions: list[SuggestedAction] = list(),
    notes: list[str] = list(),
)

Container for the full analysis output.

SuggestedAction dataclass

SuggestedAction(
    action_type: str,
    category: str,
    rationale: str,
    confidence: float,
    columns: list[str] = list(),
)

Represents a proposed Magic ETL action alternative.