et_engine_core.tools¶
Classes
|
Interface for ET Engine Arguments |
|
Interface for ET Engine Filesystems |
|
Interface for ET Engine Hardware |
|
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