Skip to content

events

Class info

Classes

Name Children Inherits
Event
datacook.engine.events
Event(kind: datacook.engine.events.EventKind, node_ids: tuple[str, ...], generation: int | None \= None, error: BaseException | None \= None)
    EventKind
    datacook.engine.events

      🛈 DocStrings

      Session events (plain callbacks, no Qt).

      EventKind

      Bases: StrEnum

      Source code in src/datacook/engine/events.py
      class EventKind(StrEnum):
          ADDED = "added"
          """A node was added (`node_ids` = the new node)."""
          REMOVED = "removed"
          """Nodes were removed (`node_ids` = the node and all its descendants)."""
          CHANGED = "changed"
          """A node's params / name / comment changed (`node_ids` = the node)."""
          MOVED = "moved"
          """Nodes got new parents (`node_ids` = the re-parented nodes); followed by INVALIDATED."""
          INVALIDATED = "invalidated"
          """Cached results are outdated (`node_ids` = the edited node + all descendants)."""
          MATERIALIZED = "materialized"
          """A node's frame was computed and cached for `generation`."""
          EVICTED = "evicted"
          """Frames were dropped from the cache (memory budget); summaries stay available."""
          ERROR = "error"
          """Computing a node failed (`error` holds the exception)."""
      

      ADDED class-attribute instance-attribute

      ADDED = 'added'
      

      A node was added (node_ids = the new node).

      CHANGED class-attribute instance-attribute

      CHANGED = 'changed'
      

      A node's params / name / comment changed (node_ids = the node).

      ERROR class-attribute instance-attribute

      ERROR = 'error'
      

      Computing a node failed (error holds the exception).

      EVICTED class-attribute instance-attribute

      EVICTED = 'evicted'
      

      Frames were dropped from the cache (memory budget); summaries stay available.

      INVALIDATED class-attribute instance-attribute

      INVALIDATED = 'invalidated'
      

      Cached results are outdated (node_ids = the edited node + all descendants).

      MATERIALIZED class-attribute instance-attribute

      MATERIALIZED = 'materialized'
      

      A node's frame was computed and cached for generation.

      MOVED class-attribute instance-attribute

      MOVED = 'moved'
      

      Nodes got new parents (node_ids = the re-parented nodes); followed by INVALIDATED.

      REMOVED class-attribute instance-attribute

      REMOVED = 'removed'
      

      Nodes were removed (node_ids = the node and all its descendants).