call_factory(script_info, app_factory, args=None, kwargs=None) |
Takes an app factory, a ``script_info` object and optionally a tuple [extrait de call_factory.__doc__] |
cli(*args: Any, **kwargs: Any) -> Any |
Special subclass of the :class:`AppGroup` group that supports [extrait de __doc__] |
find_app_by_string(script_info, module, app_name) |
Check if the given string is a variable name or a function. Call [extrait de find_app_by_string.__doc__] |
find_best_app(script_info, module) |
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 [extrait de get_debug_flag.__doc__] |
get_env() -> str |
Get the environment the app is running in, indicated by the [extrait de get_env.__doc__] |
get_load_dotenv(default: bool = True) -> bool |
Get whether the user has disabled loading dotenv files by setting [extrait de get_load_dotenv.__doc__] |
get_version(ctx, param, value) |
|
import_string(import_name: str, silent: bool = False) -> Any |
Imports an object based on a string. This is useful if you want to [extrait de import_string.__doc__] |
load_dotenv(path=None) |
Load "dotenv" files in order of precedence to set environment variables. [extrait de load_dotenv.__doc__] |
locate_app(script_info, module_name, app_name, raise_if_not_found=True) |
|
main() -> None |
|
prepare_import(path) |
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__] |
shell_command(*args: Any, **kwargs: Any) -> Any |
Run an interactive Python shell in the context of a given [extrait de __doc__] |
show_server_banner(env, debug, app_import_path, eager_loading) |
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__'), updated=('__dict__',)) |
Update a wrapper function to look like the wrapped function [extrait de update_wrapper.__doc__] |
with_appcontext(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 :