magic_etl
magic_etl ¶
MagicETL_Dataflow
dataclass
¶
MagicETL_Dataflow(
auth: DomoAuth,
id: str,
raw: dict,
name: str | None = None,
owner: str | None = None,
description: str | None = None,
tags: list[str] | None = None,
version_id: int | None = None,
version_number: int | None = None,
versions: list[dict[str, Any]] | None = None,
jupyter_workspace_config: dict | None = None,
Definition: DomoDataflow_Definition | None = None,
History: DomoDataflow_History | None = None,
JupyterWorkspace: DomoJupyterWorkspace | None = None,
)
Bases: DomoDataflow
DomoDataflow subclass for Magic ETL (databaseType == "MAGIC") dataflows.
Adds Magic ETL-specific functionality, most notably instructions which
fetches the full tile/function reference from the Domo expression-docs API.
instructions
async
¶
instructions(
return_raw: bool = False,
debug_api: bool = False,
debug_num_stacks_to_drop: int = 2,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
pin_version: str | None = None,
**context_kwargs
)
Retrieve the Magic ETL tile/function reference for this instance's Domo instance.
Calls v2 endpoint by default, falls back to v1 if unavailable (non-auth errors). Logs a warning if fallback is used. Raises if both fail.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
return_raw
|
bool
|
Return the raw |
False
|
debug_api
|
bool
|
Enable API debugging output. |
False
|
debug_num_stacks_to_drop
|
int
|
Stack frames to drop in debug logging. |
2
|
session
|
AsyncClient | None
|
Optional |
None
|
context
|
RouteContext | None
|
|
None
|
pin_version
|
str | None
|
'v2', 'v1', or None for auto-fallback. |
None
|
**context_kwargs
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
|
Parsed tile documentation (list / dict) when |
|
|
or the |
Source code in src/crew_dcs/classes/DomoDataflow/magic_etl.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |