A collection of related documentable objects.
PyDoctor documents collections of objects, often the contents of a package.
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | add |
Add object to the system. |
Method | add |
Undocumented |
Method | analyze |
Undocumented |
Method | fetch |
Download and parse intersphinx inventories based on configuration. |
Method | find |
Look up an object using a potentially outdated full name. |
Method | get |
Undocumented |
Method | handle |
This is called when we see two objects with the same .fullName(), for example: |
Method | introspect |
Undocumented |
Method | members |
Returns a callable suitable to be used with sorted function. Used to sort the given object's members for presentation. |
Method | msg |
Log a message. pydoctor's logging system is bit messy. |
Method | objects |
Iterate over all instances of cls present in the system. |
Method | obj |
Undocumented |
Method | post |
Called when there are no more unprocessed modules. |
Method | privacy |
Undocumented |
Method | process |
Undocumented |
Method | process |
Undocumented |
Method | progress |
Undocumented |
Method | set |
Undocumented |
Class Variable | custom |
Additional list of extensions to load alongside default extensions. |
Class Variable | default |
Undocumented |
Class Variable | show |
What kind of attributes we should display the value for? |
Class Variable | system |
Undocumented |
Instance Variable | allobjects |
Undocumented |
Instance Variable | buildtime |
Undocumented |
Instance Variable | extensions |
List of extensions. |
Instance Variable | intersphinx |
Undocumented |
Instance Variable | module |
Undocumented |
Instance Variable | needsnl |
Undocumented |
Instance Variable | once |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | parse |
Dict from the name of the thing we're rendering (section) to the FullNames of objects for which the rendereable elements failed to parse. Typically the renderable element is the docstring, but it can be the decorators, parameter default values or any other colorized AST. |
Instance Variable | processing |
Undocumented |
Instance Variable | projectname |
Undocumented |
Instance Variable | rootobjects |
Undocumented |
Instance Variable | unprocessed |
Undocumented |
Instance Variable | verboselevel |
Undocumented |
Instance Variable | violations |
The number of docstring problems found. This is used to determine whether to fail the build when using the --warnings-as-errors option, so it should only be increased for problems that the user can fix. |
Property |
|
Undocumented |
Property |
|
Undocumented |
Property |
|
Undocumented |
Property |
|
Undocumented |
Property |
|
Undocumented |
Property | root |
The top-level package/module names in this system. |
Property | sourcebase |
Undocumented |
Method | _add |
First add the new module into the unprocessed_modules list. Handle eventual duplication of module names, and finally add the module to the system. |
Method | _handle |
This is called when two modules have the same name. |
Method | _introspect |
Undocumented |
Method | _remove |
Undocumented |
Instance Variable | _astbuilder |
Undocumented |
Instance Variable | _factory |
Undocumented |
Instance Variable | _post |
Undocumented |
Instance Variable | _privacy |
Undocumented |
Path
, modname: str
, parentPackage: _PackageT | None
, is_package: Literal[ False]
= False) -> _ModuleT
:Path
, modname: str
, parentPackage: _PackageT | None
, is_package: Literal[ True]
) -> _PackageT
:Undocumented
Look up an object using a potentially outdated full name.
A name can become outdated if the object is reparented: objForFullName()
will only be able to find it under its new name, but we might still have references to the old name.
Parameters | |
fullstr | The fully qualified name of the object. |
Returns | |
Documentable | None | The object, or None if the name is external (it does not match any of the roots of this system). |
Raises | |
LookupError | If the object is not found, while its name does match one of the roots of this system. |
This is called when we see two objects with the same .fullName(), for example:
class C: if something: def meth(self): implementation 1 else: def meth(self): implementation 2
The default is that the second definition "wins".
Path
, module_name: str
, package: _PackageT | None
) -> _ModuleT
:
(source)
¶
Undocumented
Returns a callable suitable to be used with sorted
function. Used to sort the given object's members for presentation.
Users can customize class and module members order independently, or can override this method with a custom system class for further tweaks.
str
, msg: str
, thresh: int
= 0, topthresh: int
= 100, nonl: bool
= False, wantsnl: bool
= True, once: bool
= False):
(source)
¶
Log a message. pydoctor's logging system is bit messy.
Parameters | |
section:str | API doc generation step this message belongs to. |
msg:str | The message. |
thresh:int | The minimum verbosity level of the system for this message to actually be printed. Meaning passing thresh=-1 will make message still display if -q is passed but not if -qq. Similarly, passing thresh=1 will make the message only apprear if the verbosity level is at least increased once with -v. Using negative thresh will count this message as a violation and will fail the build if option -W is passed. |
topthresh:int | The maximum verbosity level of the system for this message to actually be printed. |
nonl:bool | Undocumented |
wantsnl:bool | Undocumented |
once:bool | Undocumented |
Called when there are no more unprocessed modules.
Analysis of relations between documentables can be done here, without the risk of drawing incorrect conclusions because modules were not fully processed yet.
See Also | |
extensions.PriorityProcessor . |
List of extensions.
By default, all built-in pydoctor extensions will be loaded. Override this value to cherry-pick extensions.
Dict from the name of the thing we're rendering (section) to the FullNames of objects for which the rendereable elements failed to parse. Typically the renderable element is the docstring, but it can be the decorators, parameter default values or any other colorized AST.
The number of docstring problems found. This is used to determine whether to fail the build when using the --warnings-as-errors option, so it should only be increased for problems that the user can fix.
First add the new module into the unprocessed_modules list. Handle eventual duplication of module names, and finally add the module to the system.
This is called when two modules have the same name.
Current rules are the following:
- C-modules wins over regular python modules
- Packages wins over modules
- Else, the last added module wins
object
, parent: CanContainImportsDocumentable
, parentMod: _ModuleT
):
(source)
¶
Undocumented