thoth.common.config package¶
Submodules¶
thoth.common.config.base module¶
A base class for configuration entries.
thoth.common.config.hardware_information module¶
Representation of hardware available with serialization/deserialization methods.
- class thoth.common.config.hardware_information.HardwareInformation(cpu_family: Optional[int] = None, cpu_model: Optional[int] = None, gpu_model: Optional[int] = None)[source]¶
Bases:
thoth.common.config.base.ConfigEntryBase
Representation for hardware related information.
- cpu_family¶
- cpu_model¶
- gpu_model¶
thoth.common.config.operating_system module¶
Representation of operating system available with serialization/deserialization methods.
thoth.common.config.runtime_environment module¶
Representation of runtime environment entry collapsing hardware, runtime and other information.
- class thoth.common.config.runtime_environment.RuntimeEnvironment(hardware: thoth.common.config.hardware_information.HardwareInformation, operating_system: thoth.common.config.operating_system.OperatingSystem, python_version: Optional[str] = None, cuda_version: Optional[str] = None, openblas_version: Optional[str] = None, openmpi_version: Optional[str] = None, cudnn_version: Optional[str] = None, mkl_version: Optional[str] = None, labels: Optional[Dict[str, str]] = None, base_image: Optional[str] = None, name: Optional[str] = None, platform: Optional[str] = None, recommendation_type: Optional[str] = None)[source]¶
Bases:
object
An entry collapsing configuration options in the user configuration file.
- base_image¶
- cuda_version¶
- cudnn_version¶
- classmethod from_dict(dict_: Optional[Dict[Any, Any]] = None) thoth.common.config.runtime_environment.RuntimeEnvironment [source]¶
Parse one configuration entry from a dictionary.
- get_python_version_tuple() Tuple[int, int] [source]¶
Get tuple with Python version (major, minor) information.
- hardware¶
- labels¶
- classmethod load(content: Optional[str] = None) thoth.common.config.runtime_environment.RuntimeEnvironment [source]¶
Load runtime environment information from file or from a JSON representation, transparently.
- mkl_version¶
- name¶
- openblas_version¶
- openmpi_version¶
- operating_system¶
- platform¶
- python_version¶
- recommendation_type¶
Module contents¶
Representation of configuration entries in Thoth.
- class thoth.common.config.HardwareInformation(cpu_family: Optional[int] = None, cpu_model: Optional[int] = None, gpu_model: Optional[int] = None)[source]¶
Bases:
thoth.common.config.base.ConfigEntryBase
Representation for hardware related information.
- cpu_family¶
- cpu_model¶
- gpu_model¶
- class thoth.common.config.OperatingSystem(name: Optional[str] = None, version: Optional[str] = None)[source]¶
Bases:
thoth.common.config.base.ConfigEntryBase
Representation for hardware related information.
- name¶
- version¶
- class thoth.common.config.RuntimeEnvironment(hardware: thoth.common.config.hardware_information.HardwareInformation, operating_system: thoth.common.config.operating_system.OperatingSystem, python_version: Optional[str] = None, cuda_version: Optional[str] = None, openblas_version: Optional[str] = None, openmpi_version: Optional[str] = None, cudnn_version: Optional[str] = None, mkl_version: Optional[str] = None, labels: Optional[Dict[str, str]] = None, base_image: Optional[str] = None, name: Optional[str] = None, platform: Optional[str] = None, recommendation_type: Optional[str] = None)[source]¶
Bases:
object
An entry collapsing configuration options in the user configuration file.
- base_image¶
- cuda_version¶
- cudnn_version¶
- classmethod from_dict(dict_: Optional[Dict[Any, Any]] = None) thoth.common.config.runtime_environment.RuntimeEnvironment [source]¶
Parse one configuration entry from a dictionary.
- get_python_version_tuple() Tuple[int, int] [source]¶
Get tuple with Python version (major, minor) information.
- hardware¶
- labels¶
- classmethod load(content: Optional[str] = None) thoth.common.config.runtime_environment.RuntimeEnvironment [source]¶
Load runtime environment information from file or from a JSON representation, transparently.
- mkl_version¶
- name¶
- openblas_version¶
- openmpi_version¶
- operating_system¶
- platform¶
- python_version¶
- recommendation_type¶