ezmsg.dashboard.backend.execution_document#

Validate saved definitions against installed classes, never saved port metadata.

Functions

compatible(source, target)[source]#
Return type:

bool

construct_graph(raw, sources=None)[source]#
Parameters:
prepare_document(raw, sources=None)[source]#
Return type:

tuple[GraphDocument, dict, dict]

Parameters:
runtime_name(node_id, name=None)[source]#
Return type:

str

Parameters:
  • node_id (str)

  • name (str | None)

Classes

class EdgeDefinition(**data)[source]#

Bases: BaseModel

Parameters:
id: str#
source: str#
sourceHandle: str#
target: str#
targetHandle: str#
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ExternalInput(**data)[source]#

Bases: BaseModel

Parameters:
id: str#
topic: str#
target: str#
targetHandle: str#
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GraphDocument(**data)[source]#

Bases: BaseModel

Parameters:
model_config: ClassVar[ConfigDict] = {'extra': 'ignore'}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

version: Literal[1]#
nodes: list[NodeDefinition]#
edges: list[EdgeDefinition]#
external_inputs: list[ExternalInput]#
check_graph()[source]#
class NodeDefinition(**data)[source]#

Bases: BaseModel

Parameters:
model_config: ClassVar[ConfigDict] = {'extra': 'ignore'}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: str#
name: str | None#
component: Registration#
settings: dict[str, Any]#
class Registration(**data)[source]#

Bases: BaseModel

Parameters:
id: str#
name: str#
value: str#
distribution: str#
version: str#
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].