thoth.package_extract.handlers package

Submodules

thoth.package_extract.handlers.base module

A base class for implementing extraction handlers.

class thoth.package_extract.handlers.base.HandlerBase[source]

Bases: object

Handle extracting packages from build logs.

classmethod get_handler_names() → List[str][source]

Get names of all registered handlers.

handlers = [<class 'thoth.package_extract.handlers.yum.YUM'>, <class 'thoth.package_extract.handlers.pip3.PIP3'>]
classmethod instantiate_handlers() → Generator[[T, None], None][source]

Instantiate handlers with corresponding arguments.

classmethod register(handler_instance: T) → None[source]

Register a handler instance to be used.

abstract run(input_text: str) → dict[source]

Find and parse installed packages and their versions from a build log.

thoth.package_extract.handlers.dnf module

Parse packages installed using dnf.

class thoth.package_extract.handlers.dnf.DNF[source]

Bases: thoth.package_extract.handlers.base.HandlerBase

Handle extracting packages from build logs - dnf installer.

run(input_text: str) → dict[source]

Find and parse installed packages and their versions from a build log.

thoth.package_extract.handlers.pip module

Parse packages installed using pip.

class thoth.package_extract.handlers.pip.PIP[source]

Bases: thoth.package_extract.handlers.base.HandlerBase

Handle extracting packages from build logs - pip installer.

run(input_text: str) → dict[source]

Find and parse installed packages and their versions from a build log.

thoth.package_extract.handlers.pip3 module

Parse packages installed using pip3.

class thoth.package_extract.handlers.pip3.PIP3[source]

Bases: thoth.package_extract.handlers.base.HandlerBase

Handle extracting packages from build logs - pip3 installer.

run(input_text: str) → list[source]

Find and parse installed packages and their versions from a build log.

thoth.package_extract.handlers.yum module

Handle output of yum command - parse installed packages.

class thoth.package_extract.handlers.yum.YUM[source]

Bases: thoth.package_extract.handlers.base.HandlerBase

Handle extracting packages from build logs - yum installer.

run(input_text: str) → list[source]

Find and parse installed packages and their versions from a build log.

Module contents

Implementation of handlers for parsing build log output.