mantik.config.core¶
Attributes¶
Classes¶
The backend config for the UNICORE MLflow backend. |
|
The backend config for SSH MLflow backend. |
|
Create a collection of name/value pairs. |
Functions¶
|
Module Contents¶
- class mantik.config.core.Config[source]¶
Bases:
mantik.config._base.ConfigObject
The backend config for the UNICORE MLflow backend.
- property backend_type: SupportedBackends[source]¶
- environment: mantik.config.environment.Environment | None = None[source]¶
- firecrest: mantik.config.firecrest.Firecrest | None = None[source]¶
- classmethod from_filepath(filepath: pathlib.Path, connection_id: uuid.UUID | None = None) Config [source]¶
Initialize from a given file.
- resources: mantik.config.resources.Resources[source]¶
- to_slurm_batch_script(arguments: str, run_id: str, run_dir: pathlib.Path) str [source]¶
Create a Slurm batch script for firecREST.
firecREST only allows to submit jobs via batch scripts, which has to be manually constructed.
- class mantik.config.core.SSHConfig[source]¶
Bases:
mantik.config._base.ConfigObject
The backend config for SSH MLflow backend.
- property backend_type: SupportedBackends[source]¶
- environment: mantik.config.environment.Environment | None = None[source]¶
- resources: mantik.config.resources.Resources[source]¶
- class mantik.config.core.SupportedBackends(*args, **kwds)[source]¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- mantik.config.core.backend_type_from_backend_config(backend_config: Dict) SupportedBackends [source]¶