Skip to content

TreeReader

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  223927478["recipes.TreeReader"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 223927478
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

What creating a recipe reads (Session, the app's SessionLike).

Source code in src/datacook/engine/recipes.py
class TreeReader(Protocol):
    """What creating a recipe reads (`Session`, the app's `SessionLike`)."""

    @property
    def registry(self) -> Registry[type[Op]]: ...

    def get(self, node_id: str) -> Node | None: ...

    def nodes(self) -> tuple[Node, ...]: ...

    def ancestors(self, node_id: str) -> tuple[Node, ...]: ...

    def descendants(self, node_id: str) -> tuple[str, ...]: ...

    def summary(self, node_id: str) -> FrameSummary | None: ...

:fa-brands-github: Show source on GitHub