module documentation

The command-line parsing.

Class IntersphinxFile Undocumented
Class Options Container for all possible pydoctor options.
Function get_parser Undocumented
Function parse_args Undocumented
Constant BUILDTIME_FORMAT Undocumented
Constant BUILDTIME_FORMAT_HELP Undocumented
Constant CONFIG_SECTIONS Undocumented
Constant DEFAULT_CONFIG_FILES Undocumented
Constant DEFAULT_SYSTEM Undocumented
Variable PydoctorConfigParser Undocumented
Function _convert_htmlbaseurl Undocumented
Function _convert_htmlwriter Undocumented
Function _convert_intersphinx_file Undocumented
Function _convert_privacy Undocumented
Function _convert_projectbasedirectory Undocumented
Function _convert_sourcepath Undocumented
Function _convert_systemclass Undocumented
Function _convert_templatedir Undocumented
Function _get_viewsource_template Recognize several version control providers based on option --html-viewsource-base.
Function _parse_intersphinx_file Function returning a tuple (inventory file, base_url) for the intersphinx-file commandline argument. Used double commas because the simple comma might conflict with windows drive names.
Function _warn_deprecated_options Check the CLI options and warn on deprecated options.
Constant _RECOGNIZED_SOURCE_HREF Undocumented
def get_parser() -> ArgumentParser: (source)

Undocumented

def parse_args(args: Sequence[str]) -> Namespace: (source)

Undocumented

BUILDTIME_FORMAT: str = (source)

Undocumented

Value
'%Y-%m-%d %H:%M:%S'
BUILDTIME_FORMAT_HELP: str = (source)

Undocumented

Value
'YYYY-mm-dd HH:MM:SS'
CONFIG_SECTIONS: list[str] = (source)

Undocumented

Value
['tool.pydoctor', 'tool:pydoctor', 'pydoctor']
DEFAULT_CONFIG_FILES: list[str] = (source)

Undocumented

Value
['./pyproject.toml', './setup.cfg', './pydoctor.ini']
DEFAULT_SYSTEM: str = (source)

Undocumented

Value
'pydoctor.model.System'
PydoctorConfigParser = (source)

Undocumented

def _convert_htmlbaseurl(url: str | None) -> str | None: (source)

Undocumented

def _convert_htmlwriter(s: str) -> type[IWriter]: (source)

Undocumented

def _convert_intersphinx_file(files: list[str]) -> list[IntersphinxFile]: (source)

Undocumented

def _convert_privacy(l: list[str]) -> list[tuple[model.PrivacyClass, str]]: (source)

Undocumented

def _convert_projectbasedirectory(s: str | None) -> Path | None: (source)

Undocumented

def _convert_sourcepath(l: list[str]) -> list[Path]: (source)

Undocumented

def _convert_systemclass(s: str) -> type[model.System]: (source)

Undocumented

def _convert_templatedir(l: list[str]) -> list[Path]: (source)

Undocumented

def _get_viewsource_template(sourcebase: str | None) -> str: (source)

Recognize several version control providers based on option --html-viewsource-base.

def _parse_intersphinx_file(s: str) -> IntersphinxFile: (source)

Function returning a tuple (inventory file, base_url) for the intersphinx-file commandline argument. Used double commas because the simple comma might conflict with windows drive names.

>>> _parse_intersphinx_file('c:/one::https://two/')
IntersphinxFile(filepath='c:/one', base_url='https://two/')
>>> _parse_intersphinx_file('c:/one')
IntersphinxFile(filepath='c:/one', base_url=None)
>>> _parse_intersphinx_file('three::c:/one::https://two/')
Traceback (most recent call last):
...
ValueError: delimiter '::' when used, must be present only once per --interspinx-file option
>>> _parse_intersphinx_file('::one')
Traceback (most recent call last):
...
ValueError: delimiter '::' must be present in between two non-empty strings
>>> _parse_intersphinx_file('one::')
Traceback (most recent call last):
...
ValueError: delimiter '::' must be present in between two non-empty strings
>>> _parse_intersphinx_file('::::')
Traceback (most recent call last):
...
ValueError: delimiter '::' when used, must be present only once per --interspinx-file option
def _warn_deprecated_options(options: Namespace): (source)

Check the CLI options and warn on deprecated options.

_RECOGNIZED_SOURCE_HREF = (source)

Undocumented

Value
{'{mod_source_href}#l{lineno}': re.compile(r'(^https?://sourceforge\.net/)'),
 '{mod_source_href}#lines-{lineno}': re.compile(r'(^https?://bitbucket\.org/)'),
 '{mod_source_href}#L{lineno}': re.compile(r'(.*)?')}