spaday_dagre.example ==================== .. py:module:: spaday_dagre.example .. autoapi-nested-parse:: A pipeline-explorer showcase, live over a transports wire: the server sweeps an *active* highlight from ingest through deploy — walking the nodes and the edges between them — pushing each step to every client, and node/edge selection rides back to the server as model edits (the same round trip the other peers' examples exercise). Also on show: node shapes, a compound "modeling" cluster grouping the middle stages, the ``emphasis`` prop mirroring the live selection, a right-click context menu for nodes and edges (with a Focus item driving the ``focusNode`` method), view controls, host-driven sizing, and the spaday page-mode theme convention (``wa-dark``) re-theming the whole page. Run ``python -m spaday_dagre.example`` and open http://127.0.0.1:8016. Attributes ---------- .. autoapisummary:: spaday_dagre.example.ORDER spaday_dagre.example.STEPS spaday_dagre.example.GRAPH spaday_dagre.example.pipeline spaday_dagre.example.session spaday_dagre.example.server spaday_dagre.example._menu_choice spaday_dagre.example.graph spaday_dagre.example.menu spaday_dagre.example.toolbar spaday_dagre.example.status spaday_dagre.example.active_chip spaday_dagre.example.page spaday_dagre.example._HIGHLIGHTS spaday_dagre.example.STYLES spaday_dagre.example.initial_store spaday_dagre.example.app Classes ------- .. autoapisummary:: spaday_dagre.example.Pipeline Functions --------- .. autoapisummary:: spaday_dagre.example.sweep spaday_dagre.example._direction spaday_dagre.example._active_rule spaday_dagre.example._selected_edge_rule Module Contents --------------- .. py:data:: ORDER :value: ['ingest', 'clean', 'features', 'train', 'evaluate', 'deploy'] .. py:data:: STEPS :type: list[str] :value: [] .. py:data:: GRAPH .. py:class:: Pipeline(/, **data: Any) Bases: :py:obj:`pydantic.BaseModel` The live model every client mirrors: the server owns ``active``; clients edit ``selected``. Create a new model by parsing and validating input data from keyword arguments. Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. `self` is explicitly positional-only to allow `self` as a field name. .. py:attribute:: active :type: str :value: 'ingest' .. py:attribute:: selected :type: str :value: '' .. py:data:: pipeline .. py:data:: session .. py:data:: server .. py:function:: sweep() -> None :async: Walk the active highlight from ingest through deploy — nodes and the edges between them — forever (server → clients). .. py:data:: _menu_choice .. py:data:: graph .. py:data:: menu .. py:function:: _direction(label: str, rankdir: str) .. py:data:: toolbar .. py:data:: status .. py:data:: active_chip .. py:data:: page .. py:function:: _active_rule(step: str) -> str The sweep's walk highlight: a red outline, distinct from the blue selection. .. py:function:: _selected_edge_rule(edge: dict) -> str A selected edge stays highlighted; its selection key is the label, else "source → target". .. py:data:: _HIGHLIGHTS :value: '' .. py:data:: STYLES :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ """ .. raw:: html
.. py:data:: initial_store .. py:data:: app