manager
manager ¶
DomoDatasets Manager Class for collection operations on datasets.
DomoDatasets
dataclass
¶
DomoDatasets(
auth: DomoAuth, datasets: list[DomoDataset] = list()
)
Bases: DomoManager
Manager class for searching and retrieving multiple datasets.
Provides methods for listing and searching datasets in a Domo instance.
get
async
¶
get(
search_text: str | None = None,
maximum: int | None = None,
data_provider_type: str | None = None,
hydrate_schedule_state: bool = False,
hydrate_concurrency: int = 10,
debug_api: bool = False,
debug_num_stacks_to_drop: int = 2,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[DomoDataset]
Retrieve datasets from Domo, optionally filtering by search text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
search_text
|
str | None
|
Optional text to search for in dataset names |
None
|
maximum
|
int | None
|
Maximum number of datasets to return |
None
|
data_provider_type
|
str | None
|
Optional dataset provider type to filter on |
None
|
hydrate_schedule_state
|
bool
|
If True, hydrate each dataset by ID and stream metadata
so schedule-dependent properties ( |
False
|
hydrate_concurrency
|
int
|
Max concurrent dataset hydrations when hydrate_schedule_state=True |
10
|
debug_api
|
bool
|
Enable API debugging |
False
|
debug_num_stacks_to_drop
|
int
|
Stack frames to drop for debugging |
2
|
session
|
AsyncClient | None
|
HTTP client session (optional, will create one with 30s timeout if not provided) |
None
|
return_raw
|
bool
|
Return raw API response |
False
|
context
|
RouteContext | None
|
Optional RouteContext for API call configuration |
None
|
**context_kwargs
|
Additional context parameters |
{}
|
Returns:
| Type | Description |
|---|---|
list[DomoDataset]
|
List of DomoDataset objects matching the criteria |
Source code in src/crew_dcs/classes/DomoDataset/manager.py
30 31 32 33 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 | |
get_by_ids
async
¶
get_by_ids(
dataset_ids: list[str],
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[DomoDataset]
Fetch many datasets at once (POST /data/v3/datasources/bulk).
Each result is dispatched to the right class (DomoDataset / DomoDatasetView / DomoSemanticModel) by the factory.
Source code in src/crew_dcs/classes/DomoDataset/manager.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
search
async
¶
search(
search_text: str,
maximum: int | None = None,
data_provider_type: str | None = None,
hydrate_schedule_state: bool = False,
hydrate_concurrency: int = 10,
debug_api: bool = False,
debug_num_stacks_to_drop: int = 2,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[DomoDataset]
Search for datasets by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
search_text
|
str
|
Text to search for in dataset names (wildcards supported) |
required |
maximum
|
int | None
|
Maximum number of datasets to return |
None
|
data_provider_type
|
str | None
|
Optional dataset provider type to filter on |
None
|
hydrate_schedule_state
|
bool
|
If True, hydrate each dataset by ID and stream metadata
so schedule-dependent properties ( |
False
|
hydrate_concurrency
|
int
|
Max concurrent dataset hydrations when hydrate_schedule_state=True |
10
|
debug_api
|
bool
|
Enable API debugging |
False
|
debug_num_stacks_to_drop
|
int
|
Stack frames to drop for debugging |
2
|
session
|
AsyncClient | None
|
HTTP client session (optional, will create one with 30s timeout if not provided) |
None
|
return_raw
|
bool
|
Return raw API response |
False
|
context
|
RouteContext | None
|
Optional RouteContext for API call configuration |
None
|
**context_kwargs
|
Additional context parameters |
{}
|
Returns:
| Type | Description |
|---|---|
list[DomoDataset]
|
List of DomoDataset objects matching the search criteria |
Source code in src/crew_dcs/classes/DomoDataset/manager.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |
search_by_tags
async
¶
search_by_tags(
tags: list[str] | str,
maximum: int | None = None,
search_text: str | None = None,
hydrate_schedule_state: bool = False,
hydrate_concurrency: int = 10,
debug_api: bool = False,
debug_num_stacks_to_drop: int = 2,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[DomoDataset]
Search for datasets by tag(s).
Uses the datacenter search API to find datasets matching the given tag filter(s). A single tag string or a list of tag strings may be passed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tags
|
list[str] | str
|
Tag filter(s) — a single tag string or a list of tag strings |
required |
maximum
|
int | None
|
Maximum number of datasets to return |
None
|
search_text
|
str | None
|
Optional text to search for in dataset names (wildcards supported) |
None
|
hydrate_schedule_state
|
bool
|
If True, hydrate each dataset by ID and stream metadata
so schedule-dependent properties ( |
False
|
hydrate_concurrency
|
int
|
Max concurrent dataset hydrations when hydrate_schedule_state=True |
10
|
debug_api
|
bool
|
Enable API debugging |
False
|
debug_num_stacks_to_drop
|
int
|
Stack frames to drop for debugging |
2
|
session
|
AsyncClient | None
|
HTTP client session (optional, will create one with 30s timeout if not provided) |
None
|
return_raw
|
bool
|
Return raw API response |
False
|
context
|
RouteContext | None
|
Optional RouteContext for API call configuration |
None
|
**context_kwargs
|
Additional context parameters |
{}
|
Returns:
| Type | Description |
|---|---|
list[DomoDataset]
|
List of DomoDataset objects matching the tag criteria |
Source code in src/crew_dcs/classes/DomoDataset/manager.py
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | |