thoth.adviser.pseudonyms package

Submodules

thoth.adviser.pseudonyms.intel_tensorflow module

A TensorFlow pseudonym.

class thoth.adviser.pseudonyms.intel_tensorflow.IntelTensorFlowPseudonym(*, configuration: Dict[str, Any] = NOTHING, name: str = None, unit_run: bool = False)[source]

Bases: thoth.adviser.pseudonym.Pseudonym

A TensorFlow pseudonym to map intel-tensorflow to tensorflow packages.

CONFIGURATION_DEFAULT = {'package_name': 'tensorflow'}
pre_run() → None[source]

Initialize this pipeline unit before each run.

run(package_version: thoth.python.package_version.PackageVersion) → Generator[[Tuple[str, str, str], None], None][source]

Map TensorFlow packages to their alternatives.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self.

thoth.adviser.pseudonyms.tensorflow_gpu module

A TensorFlow GPU pseudonym.

class thoth.adviser.pseudonyms.tensorflow_gpu.TensorFlowGPUPseudonym(*, configuration: Dict[str, Any] = NOTHING, name: str = None, unit_run: bool = False)[source]

Bases: thoth.adviser.pseudonym.Pseudonym

A TensorFlow pseudonym to map tensorflow to tensorflow-gpu packages.

CONFIGURATION_DEFAULT = {'package_name': 'tensorflow'}
pre_run() → None[source]

Initialize this pipeline unit before each run.

run(package_version: thoth.python.package_version.PackageVersion) → Generator[[Tuple[str, str, str], None], None][source]

Map TensorFlow packages to their alternatives.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self.

Module contents

Pseudonym units implemented in adviser.

class thoth.adviser.pseudonyms.AliasPseudonym(*, configuration: Dict[str, Any] = NOTHING, name: str = None, unit_run: bool = False)[source]

Bases: thoth.adviser.pseudonym.Pseudonym

A pseudonym that introduces package aliases based on the supplied configuration.

CONFIGURATION_DEFAULT = {'index_url': None, 'package_name': None, 'package_version': None}
CONFIGURATION_SCHEMA = <Schema({'package_name': <class 'str'>, 'package_version': Any(<class 'str'>, None, msg=None), 'index_url': Any(<class 'str'>, None, msg=None), 'aliases': <Schema([<Schema({'package_name': <class 'str'>, 'package_version': <class 'str'>, 'index_url': <class 'str'>}, extra=PREVENT_EXTRA, required=False) object>], extra=PREVENT_EXTRA, required=False) object>}, extra=PREVENT_EXTRA, required=False) object>
run(package_version: thoth.python.package_version.PackageVersion) → Generator[[Tuple[str, str, str], None], None][source]

Create alternatives to packages based on the configuration supplied.

classmethod should_include(_: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, never.

class thoth.adviser.pseudonyms.IntelTensorFlowPseudonym(*, configuration: Dict[str, Any] = NOTHING, name: str = None, unit_run: bool = False)[source]

Bases: thoth.adviser.pseudonym.Pseudonym

A TensorFlow pseudonym to map intel-tensorflow to tensorflow packages.

CONFIGURATION_DEFAULT = {'package_name': 'tensorflow'}
pre_run() → None[source]

Initialize this pipeline unit before each run.

run(package_version: thoth.python.package_version.PackageVersion) → Generator[[Tuple[str, str, str], None], None][source]

Map TensorFlow packages to their alternatives.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self.

class thoth.adviser.pseudonyms.TensorFlowGPUPseudonym(*, configuration: Dict[str, Any] = NOTHING, name: str = None, unit_run: bool = False)[source]

Bases: thoth.adviser.pseudonym.Pseudonym

A TensorFlow pseudonym to map tensorflow to tensorflow-gpu packages.

CONFIGURATION_DEFAULT = {'package_name': 'tensorflow'}
pre_run() → None[source]

Initialize this pipeline unit before each run.

run(package_version: thoth.python.package_version.PackageVersion) → Generator[[Tuple[str, str, str], None], None][source]

Map TensorFlow packages to their alternatives.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self.