pynenc.invocation.status_graph¶
Render the invocation status state machine from the status configuration.
Module Contents¶
Classes¶
Functions¶
Return the SVG representation generated from the current status config. |
|
Return a plain-text representation of the invocation status graph. |
|
Data¶
API¶
- pynenc.invocation.status_graph.DEFAULT_OUTPUT_PATH: Final[pathlib.Path]¶
None
- pynenc.invocation.status_graph.NodeKey¶
None
- pynenc.invocation.status_graph.Side¶
None
- pynenc.invocation.status_graph.POSITIONS: Final[dict[pynenc.invocation.status_graph.NodeKey, tuple[int, int]]]¶
None
- class pynenc.invocation.status_graph.RouteSpec[source]¶
- start_side: pynenc.invocation.status_graph.Side¶
None
- end_side: pynenc.invocation.status_graph.Side¶
None
- pynenc.invocation.status_graph.S¶
None
- pynenc.invocation.status_graph.EDGE_ROUTES: Final[dict[tuple[str, str], pynenc.invocation.status_graph.RouteSpec]]¶
None
- pynenc.invocation.status_graph.render_svg() str[source]¶
Return the SVG representation generated from the current status config.
- pynenc.invocation.status_graph.render_text() str[source]¶
Return a plain-text representation of the invocation status graph.
- pynenc.invocation.status_graph._node_bounds(node: pynenc.invocation.status_graph.NodeKey) tuple[float, float, float, float][source]¶
- pynenc.invocation.status_graph._bounds_overlap(first: tuple[float, float, float, float], second: tuple[float, float, float, float], padding: int) bool[source]¶
- pynenc.invocation.status_graph._edge_crosses_non_endpoint_node(source: pynenc.invocation.status_graph.NodeKey, target: pynenc.invocation.status.InvocationStatus) pynenc.invocation.status_graph.NodeKey | None[source]¶
- pynenc.invocation.status_graph._segment_intersects_bounds(start_x: float, start_y: float, end_x: float, end_y: float, bounds: tuple[float, float, float, float]) bool[source]¶
- pynenc.invocation.status_graph._point_inside_bounds(point_x: float, point_y: float, bounds: tuple[float, float, float, float]) bool[source]¶
- pynenc.invocation.status_graph._segments_intersect(first_start_x: float, first_start_y: float, first_end_x: float, first_end_y: float, second_start_x: float, second_start_y: float, second_end_x: float, second_end_y: float) bool[source]¶
- pynenc.invocation.status_graph._orientation(start_x: float, start_y: float, end_x: float, end_y: float, point_x: float, point_y: float) int[source]¶
- pynenc.invocation.status_graph._point_on_segment(start_x: float, start_y: float, point_x: float, point_y: float, end_x: float, end_y: float) bool[source]¶
- pynenc.invocation.status_graph._iter_edges() list[tuple[pynenc.invocation.status_graph.NodeKey, pynenc.invocation.status.InvocationStatus]][source]¶
- pynenc.invocation.status_graph._render_edge(source: pynenc.invocation.status_graph.NodeKey, target: pynenc.invocation.status.InvocationStatus) str[source]¶
- pynenc.invocation.status_graph._edge_points(source: pynenc.invocation.status_graph.NodeKey, target: pynenc.invocation.status.InvocationStatus) tuple[float, float, float, float][source]¶
- pynenc.invocation.status_graph._default_route(source: pynenc.invocation.status_graph.NodeKey, target: pynenc.invocation.status.InvocationStatus) pynenc.invocation.status_graph.RouteSpec[source]¶
- pynenc.invocation.status_graph._anchor(node: pynenc.invocation.status_graph.NodeKey, side: pynenc.invocation.status_graph.Side, offset: int) tuple[float, float][source]¶
- pynenc.invocation.status_graph._render_node(node: pynenc.invocation.status_graph.NodeKey) str[source]¶
- pynenc.invocation.status_graph._style_for(status: pynenc.invocation.status.InvocationStatus, definition: pynenc.invocation.status.StatusDefinition) str[source]¶
- pynenc.invocation.status_graph._badge_for(definition: pynenc.invocation.status.StatusDefinition) str[source]¶