Skip to content

scripting

scripting

DomoDataflow Scripting Actions

Custom scripting actions in Magic ETL v2. These correspond to the "Scripting" category in the Domo ETL UI sidebar.

DomoDataflow_Action_PythonEngine dataclass

DomoDataflow_Action_PythonEngine(
    id: str,
    action_type: str = None,
    tile_type: str | None = None,
    name: str = None,
    depends_on: list[str] = None,
    disabled: bool = False,
    gui: dict = None,
    settings: dict = None,
    raw: dict = None,
    parent_actions: list[DomoDataflow_Action_Base] = None,
    script: str = None,
    conda_env: dict = None,
    account_permission: str = None,
    inputs: list[str] = None,
    additions: list[dict] = None,
    remove_by_default: bool = False,
    fill_missing_with_null: bool = False,
    tables: list[dict] = None,
)

Bases: DomoDataflow_Action_Base

Python Engine action - executes Python scripts.

Also known as "Python Script" in the Magic ETL UI.

Attributes:

Name Type Description
script str

Python code to execute

conda_env dict

Conda environment configuration

inputs list[str]

List of input action IDs

additions list[dict]

Output column definitions

Example

python_action = dataflow.get_action_objects("PythonEngineAction")[0] print(python_action.script)