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 |
Parameters | |
view_func:t.Callable | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
loader | Undocumented |
mod_name | The name of the package or module. |
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:str | Undocumented |