thoth.adviser.wraps package

Submodules

thoth.adviser.wraps.libraries_io module

A wrap that links to information as provided by libraries.io.

class thoth.adviser.wraps.libraries_io.LibrariesIOWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that links to information as provided by libraries.io.

run(state: thoth.adviser.state.State) None[source]

Add link to information as provided by libraries.io.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

thoth.adviser.wraps.pulp_release module

A wrap that links to a Pulp instance.

class thoth.adviser.wraps.pulp_release.PulpReleaseWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that adds link to Red Hat’s Pulp instance.

run(state: thoth.adviser.state.State) None[source]

Add a link to Red Hat’s Pulp instance.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

thoth.adviser.wraps.pypi_release module

A wrap that links Python package releases available on PyPI.

class thoth.adviser.wraps.pypi_release.PyPIReleaseWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that adds information about Python packages present on PyPI.

run(state: thoth.adviser.state.State) None[source]

Add a link to Python package release available on PyPI.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

thoth.adviser.wraps.pytorch_release module

A wrap that notifies about packages consumed from the PyTorch index.

class thoth.adviser.wraps.pytorch_release.PyTorchReleaseWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that notifies about packages consumed from the PyTorch index.

run(state: thoth.adviser.state.State) None[source]

Add a link to the PyTorch index if package is consumed from there.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

thoth.adviser.wraps.thoth_search_package module

A wrap that links Python package version to Thoth Search UI.

class thoth.adviser.wraps.thoth_search_package.ThothSearchPackageWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING, search_package_url: str = 'https://thoth-station.ninja/search/package/{package_name}/{package_version}/{index_url}/{os_name}/{os_version}/{python_version}')[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that links Python package to Thoth Search UI.

run(state: thoth.adviser.state.State) None[source]

Add a link to Thoth Search UI for each resolved package.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

thoth.adviser.wraps.trove_classifiers module

A wrap that provides information derived from Python trove classifiers.

class thoth.adviser.wraps.trove_classifiers.TroveClassifiersWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that provides information derived from Python trove classifiers.

run(state: thoth.adviser.state.State) None[source]

Add information derived from Python trove classifiers.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

Module contents

Wrap units implemented in adviser.

class thoth.adviser.wraps.LibrariesIOWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that links to information as provided by libraries.io.

run(state: thoth.adviser.state.State) None[source]

Add link to information as provided by libraries.io.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.PulpReleaseWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that adds link to Red Hat’s Pulp instance.

run(state: thoth.adviser.state.State) None[source]

Add a link to Red Hat’s Pulp instance.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.PyPIReleaseWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that adds information about Python packages present on PyPI.

run(state: thoth.adviser.state.State) None[source]

Add a link to Python package release available on PyPI.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.PyTorchReleaseWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that notifies about packages consumed from the PyTorch index.

run(state: thoth.adviser.state.State) None[source]

Add a link to the PyTorch index if package is consumed from there.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.ThothSearchPackageWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING, search_package_url: str = 'https://thoth-station.ninja/search/package/{package_name}/{package_version}/{index_url}/{os_name}/{os_version}/{python_version}')[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that links Python package to Thoth Search UI.

run(state: thoth.adviser.state.State) None[source]

Add a link to Thoth Search UI for each resolved package.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.TroveClassifiersWrap(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that provides information derived from Python trove classifiers.

run(state: thoth.adviser.state.State) None[source]

Add information derived from Python trove classifiers.

classmethod should_include(builder_context: PipelineBuilderContext) Generator[Dict[Any, Any], None, None][source]

Include this wrap in adviser, once.