cli(*args: Any, **kwargs: Any) -> Any |
Special subclass of the :class:`AppGroup` group that supports [extrait de __doc__] |
find_app_by_string(module: 'ModuleType', app_name: 'str') -> 'Flask' |
Check if the given string is a variable name or a function. Call [extrait de find_app_by_string.__doc__] |
find_best_app(module: 'ModuleType') -> 'Flask' |
Given a module instance this tries to find the best possible [extrait de find_best_app.__doc__] |
get_debug_flag() -> 'bool' |
Get whether debug mode should be enabled for the app, indicated by the [extrait de get_debug_flag.__doc__] |
get_load_dotenv(default: 'bool' = True) -> 'bool' |
Get whether the user has disabled loading default dotenv files by [extrait de get_load_dotenv.__doc__] |
get_version(ctx: 'click.Context', param: 'click.Parameter', value: 't.Any') -> 'None' |
|
import_string(import_name: 'str', silent: 'bool' = False) -> 't.Any' |
Imports an object based on a string. This is useful if you want to [extrait de import_string.__doc__] |
is_running_from_reloader() -> 'bool' |
Check if the server is running as a subprocess within the [extrait de is_running_from_reloader.__doc__] |
load_dotenv(path: 'str | os.PathLike[str] | None' = None, load_defaults: 'bool' = True) -> 'bool' |
Load "dotenv" files to set environment variables. A given path takes [extrait de load_dotenv.__doc__] |
locate_app(module_name: 'str', app_name: 'str | None', raise_if_not_found: 'bool' = True) -> 'Flask | None' |
|
main() -> 'None' |
|
prepare_import(path: 'str') -> 'str' |
Given a filename this will try to calculate the python path, add it [extrait de prepare_import.__doc__] |
routes_command(*args: Any, **kwargs: Any) -> Any |
Show all registered routes with endpoints and methods. [extrait de __doc__] |
run_command(*args: Any, **kwargs: Any) -> Any |
Run a local development server. [extrait de __doc__] |
run_simple(hostname: 'str', port: 'int', application: 'WSGIApplication', use_reloader: 'bool' = False, use_debugger: 'bool' = False, use_evalex: 'bool' = True, extra_files: 't.Iterable[str] | None' = None, exclude_patterns: 't.Iterable[str] | None' = None, reloader_interval: 'int' = 1, reloader_type: 'str' = 'auto', threaded: 'bool' = False, processes: 'int' = 1, request_handler: 'type[WSGIRequestHandler] | None' = None, static_files: 'dict[str, str | tuple[str, str]] | None' = None, passthrough_errors: 'bool' = False, ssl_context: '_TSSLContextArg | None' = None) -> 'None' |
Start a development server for a WSGI application. Various [extrait de run_simple.__doc__] |
shell_command(*args: Any, **kwargs: Any) -> Any |
Run an interactive Python shell in the context of a given [extrait de __doc__] |
show_server_banner(debug: 'bool', app_import_path: 'str | None') -> 'None' |
Show extra startup messages the first time the server is run, [extrait de show_server_banner.__doc__] |
update_wrapper(wrapper, wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__', '__type_params__'), updated=('__dict__',)) |
Update a wrapper function to look like the wrapped function [extrait de update_wrapper.__doc__] |
with_appcontext(f: 'F') -> 'F' |
Wraps a callback so that it's guaranteed to be executed with the [extrait de with_appcontext.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :