Skip to main content

find_best_app

Given a module instance this tries to find the best possible application in the module or raises an exception.

def find_best_app(
module: ModuleType
) - > Flask

Given a module instance this tries to find the best possible application in the module or raises an exception.

Parameters

NameTypeDescription
moduleModuleTypeThe Python module object to search for Flask application instances or factory functions.

Returns

TypeDescription
FlaskThe discovered Flask application instance or the result of a called factory function.