MCPcopy
hub / github.com/plotly/dash / inputs_to_dict

Function inputs_to_dict

dash/_utils.py:211–218  ·  view source on GitHub ↗
(inputs_list)

Source from the content-addressed store, hash-verified

209
210
211def inputs_to_dict(inputs_list):
212 inputs = AttributeDict()
213 for i in inputs_list:
214 inputsi = i if isinstance(i, list) else [i]
215 for ii in inputsi:
216 id_str = stringify_id(ii["id"])
217 inputs[f'{id_str}.{ii["property"]}'] = ii.get("value")
218 return inputs
219
220
221def convert_to_AttributeDict(nested_list):

Callers 2

create_ws_contextFunction · 0.90
_initialize_contextMethod · 0.85

Calls 3

AttributeDictClass · 0.85
stringify_idFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…