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
| Name | Type | Description |
|---|---|---|
| module | ModuleType | The Python module object to search for Flask application instances or factory functions. |
Returns
| Type | Description |
|---|---|
Flask | The discovered Flask application instance or the result of a called factory function. |