MCPcopy
hub / github.com/benoitc/gunicorn / load_entry_point

Function load_entry_point

gunicorn/util.py:70–76  ·  view source on GitHub ↗
(distribution, group, name)

Source from the content-addressed store, hash-verified

68
69
70def load_entry_point(distribution, group, name):
71 dist_obj = importlib_metadata.distribution(distribution)
72 eps = [ep for ep in dist_obj.entry_points
73 if ep.group == group and ep.name == name]
74 if not eps:
75 raise ImportError("Entry point %r not found" % ((group, name),))
76 return eps[0].load()
77
78
79def load_class(uri, default="gunicorn.workers.sync.SyncWorker",

Callers 1

load_classFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected