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

Function load_dirty_apps

gunicorn/dirty/app.py:281–297  ·  view source on GitHub ↗

Load multiple dirty apps from a list of import paths. Args: import_paths: List of import path strings Returns: dict: Mapping of import path to app instance Raises: DirtyAppError: If any app fails to load

(import_paths)

Source from the content-addressed store, hash-verified

279
280
281def load_dirty_apps(import_paths):
282 """
283 Load multiple dirty apps from a list of import paths.
284
285 Args:
286 import_paths: List of import path strings
287
288 Returns:
289 dict: Mapping of import path to app instance
290
291 Raises:
292 DirtyAppError: If any app fails to load
293 """
294 apps = {}
295 for import_path in import_paths:
296 apps[import_path] = load_dirty_app(import_path)
297 return apps
298
299
300def get_app_workers_attribute(import_path):

Callers 4

test_load_empty_listMethod · 0.90
load_appsMethod · 0.85

Calls 1

load_dirty_appFunction · 0.85