workflows.services.context_catalog¶
Helpers to build a flattened catalog of context keys for the UI.
Attributes¶
Functions¶
|
|
|
|
|
|
|
Build catalog rows (key/label/sample) for use in the UI. |
Module Contents¶
- workflows.services.context_catalog._flatten(obj, prefix='')[source]¶
- Parameters:
obj (Any)
prefix (str)
- Return type:
list[tuple[str, Any]]
- workflows.services.context_catalog.build_catalog(ctx)[source]¶
Build catalog rows (key/label/sample) for use in the UI.
- Parameters:
ctx (dict[str, Any]) – The workflow context dictionary (
ctx) as produced bybuild_context.- Returns:
A structure containing usage information and a list of variable descriptors under the
"vars"key. Each descriptor has"key","label", and"sample"fields.- Return type:
dict[str, Any]