package documentation
Pydoctor's extension system.
An extension can be composed by mixin classes, AST builder visitor extensions and post processors.
Module | attrs |
Support for attrs . |
Module | deprecate |
Support for twisted.python.deprecate . |
Module | zopeinterface |
Support for Zope interfaces. |
From __init__.py
:
Class |
|
Base class for mixins applied to model.Attribute objects. |
Class |
|
Base class for mixins applied to model.Class , model.Module and model.Package objects. |
Class |
|
Base class for mixins applied to model.Class objects. |
Class |
|
Base class for mixins applied to all model.Documentable objects. |
Class |
|
The extension registrar class provides utilites to register an extension's components. |
Class |
|
Base class for mixins applied to model.Function objects. |
Class |
|
Base class for mixins applied to model.Function and model.Attribute objects. |
Class |
|
Base class for mixins applied to model.Module objects. |
Class |
|
Base class to extend the astbuilder.ModuleVistor . |
Class |
|
Base class for mixins applied to model.Package objects. |
Class |
|
Stores Callable and applies them to the system based on priority or insertion order. The default priority is 100, see code source of astbuilder.setup_pydoctor_extension , and others setup_pydoctor_extension... |
Function | get |
Get the full names of all the pydoctor extension modules. |
Function | load |
Load the pydoctor extension module into the system. |
Constant | DEFAULT |
Undocumented |
Type Alias |
|
Undocumented |
Function | _get |
Transform a list of mixins classes to a dict from the concrete class name to the mixins that must be applied to it. This relies on the fact that mixins shoud extend one of the base mixin classes in pydoctor.extensions ... |
Function | _get |
Will look for the special function setup_pydoctor_extension in the provided module. |
Function | _get |
Undocumented |
Function | _importlib |
Return an iterable of entries in package. |
Function | _importlib |
True if name is a resource inside package. |
Variable | _mixin |
Undocumented |
Transform a list of mixins classes to a dict from the concrete class name to the mixins that must be applied to it. This relies on the fact that mixins shoud extend one of the base mixin classes in pydoctor.extensions
module.
Raises | |
AssertionError | If a mixin does not extends any of the provided base mixin classes. |
def _get_setup_extension_func_from_module(module:
str
) -> Callable[ [ ExtRegistrar], None]
:
(source)
¶
Will look for the special function setup_pydoctor_extension in the provided module.
Returns | |
Callable[ | a tuple(str, callable): extension module name, setup_pydoctor_extension() function. |
Raises | |
AssertionError | if module do not provide a valid setup_pydoctor_extension() function. |
ModuleNotFoundError | if module is not found. |
Return an iterable of entries in package.
Note that not all entries are resources. Specifically, directories are not considered resources.