module documentation

Undocumented

Constant F Undocumented
Class ​Scaffold Common behavior shared between ~flask.Flask and ~flask.blueprints.Blueprint.
Function ​_endpoint​_from​_view​_func Internal helper that returns the default endpoint for a given function. This always is the function name.
Function ​_find​_package​_path Find the path that contains the package or module.
Function ​_matching​_loader​_thinks​_module​_is​_package Attempt to figure out if the given name is a package or a module.
Function find​_package Find the prefix that a package is installed under, and the path that it would be imported from.
Function setupmethod Wraps a method so that it performs a check in debug mode if the first request was already handled.
Variable ​_sentinel Undocumented
F =

Undocumented

Value
t.TypeVar('F',
          bound=t.Callable[..., t.Any])
def _endpoint_from_view_func(view_func):
Internal helper that returns the default endpoint for a given function. This always is the function name.
Parameters
view​_func:t.CallableUndocumented
Returns
strUndocumented
def _find_package_path(root_mod_name):
Find the path that contains the package or module.
def _matching_loader_thinks_module_is_package(loader, mod_name):
Attempt to figure out if the given name is a package or a module.
Parameters
loaderUndocumented
mod​_nameThe name of the package or module.
def find_package(import_name):

Find the prefix that a package is installed under, and the path that it would be imported from.

The prefix is the directory containing the standard directory hierarchy (lib, bin, etc.). If the package is not installed to the system (sys.prefix) or a virtualenv (site-packages), None is returned.

The path is the entry in sys.path that contains the package for import. If the package is not installed, it's assumed that the package was imported from the current working directory.

Parameters
import​_name:strUndocumented
def setupmethod(f):
Wraps a method so that it performs a check in debug mode if the first request was already handled.
Parameters
f:FUndocumented
Returns
FUndocumented
_sentinel =

Undocumented