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

Function get_caller_name

dash/_utils.py:323–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321
322
323def get_caller_name():
324 stack = inspect.stack()
325 for s in stack:
326 if s.function == "<module>":
327 return s.frame.f_locals.get("__name__", "__main__")
328
329 return "__main__"
330
331
332def pascal_case(name: Union[str, None]):

Callers 1

__init__Method · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…