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 instance to search for a Flask application or factory function.

Returns

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