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

Function stringify_id

dash/_utils.py:201–208  ·  view source on GitHub ↗
(id_)

Source from the content-addressed store, hash-verified

199
200
201def stringify_id(id_) -> str:
202 def _json(k, v):
203 vstr = v.to_json() if hasattr(v, "to_json") else json.dumps(v)
204 return f"{json.dumps(k)}:{vstr}"
205
206 if isinstance(id_, dict):
207 return "{" + ",".join(_json(k, id_[k]) for k in sorted(id_)) + "}"
208 return id_
209
210
211def inputs_to_dict(inputs_list):

Callers 9

_prepare_responseFunction · 0.70
component_id_strMethod · 0.70
_validate_idFunction · 0.70
set_propsMethod · 0.70
set_propsFunction · 0.70
update_args_groupFunction · 0.70
inputs_to_dictFunction · 0.70
_id_strMethod · 0.50

Calls 1

_jsonFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…