et_engine_core.tools

Classes

Argument(argument_key, argument_value)

Interface for ET Engine Arguments

Filesystem(filesystem_id, filesystem_name)

Interface for ET Engine Filesystems

Hardware(filesystem_list, cpu, memory)

Interface for ET Engine Hardware

Tool(tool_id, tool_name, tool_description)

Interface for ET Engine Tools

class Argument(argument_key: str, argument_value: str)

Bases: object

Interface for ET Engine Arguments

static from_json(argument_json: dict[slice(<class 'str'>, <class 'str'>, None)]) Self

Create a Argument object from JSON

Parameters:

argument_json (dict) – JSON-like representation of the object, e.g. from Argument(…).to_json()

Returns:

a Argument object

Return type:

Self

to_json() dict[slice(<class 'str'>, <class 'str'>, None)]

Export Argument to JSON-like dictionary

Returns:

dictionary that can be turned into a JSON string

Return type:

dict

class Hardware(filesystem_list: list[Filesystem], cpu: int, memory: int)

Bases: object

Interface for ET Engine Hardware

static from_json(hardware_json: dict[slice(<class 'str'>, <class 'str'>, None)]) Self

Create a Hardware object from JSON

Parameters:

hardware_json (dict) – JSON-like representation of the object, e.g. from Hardware(…).to_json()

Returns:

a Hardware object

Return type:

Self

to_json() dict[slice(<class 'str'>, <class 'str'>, None)]

Export Hardware to JSON-like dictionary

Returns:

dictionary that can be turned into a JSON string

Return type:

dict

class Tool(tool_id: str, tool_name: str, tool_description: str)

Bases: object

Interface for ET Engine Tools

static from_json(tool_json: dict[slice(<class 'str'>, <class 'str'>, None)]) Self

Create a Tool object from JSON

Parameters:

tool_json (dict) – JSON-like representation of the object, e.g. from Tool(…).to_json()

Returns:

a Tool object

Return type:

Self

to_json() dict[slice(<class 'str'>, <class 'str'>, None)]

Export Tool to JSON-like dictionary

Returns:

dictionary that can be turned into a JSON string

Return type:

dict