MCPcopy
hub / github.com/celery/celery / instantiate

Function instantiate

celery/utils/imports.py:38–44  ·  view source on GitHub ↗

Instantiate class by name. See Also: :func:`symbol_by_name`.

(name, *args, **kwargs)

Source from the content-addressed store, hash-verified

36
37
38def instantiate(name, *args, **kwargs):
39 """Instantiate class by name.
40
41 See Also:
42 :func:`symbol_by_name`.
43 """
44 return symbol_by_name(name)(*args, **kwargs)
45
46
47@contextmanager

Callers 7

start_strategyMethod · 0.90
amqpMethod · 0.90
controlMethod · 0.90
eventsMethod · 0.90
logMethod · 0.90
evcamFunction · 0.90
instantiateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected