Participer au site avec un Tip
Rechercher
 

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 :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé

Contenu du module « flask.cli »

Liste des classes du module flask.cli

Nom de la classe Description
AppGroup This works similar to a regular click :class:`~click.Group` but it [extrait de AppGroup.__doc__]
CertParamType Click option type for the ``--cert`` option. Allows either an [extrait de CertParamType.__doc__]
FlaskGroup Special subclass of the :class:`AppGroup` group that supports [extrait de FlaskGroup.__doc__]
itemgetter Return a callable object that fetches the given item(s) from its operand. [extrait de itemgetter.__doc__]
ParameterSource This is an :class:`~enum.Enum` that indicates the source of a [extrait de ParameterSource.__doc__]
ScriptInfo Helper object to deal with Flask applications. This is usually not [extrait de ScriptInfo.__doc__]
SeparatedPathType Click option type that accepts a list of values separated by the [extrait de SeparatedPathType.__doc__]

Liste des exceptions du module flask.cli

Nom de la classe d'exception Description
NoAppException Raised if an application cannot be found or loaded. [extrait de NoAppException.__doc__]

Liste des fonctions du module flask.cli

Signature de la fonction Description
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__]

Liste des variables globales du module flask.cli

Nom de la variable globale Valeur
annotations _Feature((3, 7, 0, 'beta', 1), None, 16777216)
current_app
F ~F
version_option <Option version>

Liste des alias du module flask.cli

Nom de l'alias Définition ciblée
ModuleType module
pass_script_info decorator


Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé