MCPcopy Index your code
hub / github.com/dataease/SQLBot / dynamic_call

Function dynamic_call

backend/apps/system/crud/user_excel.py:306–315  ·  view source on GitHub ↗
(method_name: str, *args, **kwargs)

Source from the content-addressed store, hash-verified

304}
305_module = sys.modules[__name__]
306def dynamic_call(method_name: str, *args, **kwargs):
307 if method_name in _method_cache:
308 return _method_cache[method_name](*args, **kwargs)
309
310 if hasattr(_module, method_name):
311 func = getattr(_module, method_name)
312 _method_cache[method_name] = func
313 return func(*args, **kwargs)
314
315 raise AttributeError(f"Function '{method_name}' not found")
316
317
318# Map of file_id -> temp path for generated error files

Callers 1

validate_rowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected