yera.runtime.handlers.result.ansi

Render completed result blocks in ANSI terminals.

Symbols

class ANSIResultHandler — Render completed successful and failed results in ANSI terminals.

ANSIResultHandler

Inherits: BaseHandler

Render completed successful and failed results in ANSI terminals.

Successful values are displayed as syntax-highlighted JSON so their serialized types and nested structure remain visible. Failed results show the exception type and message, with the captured traceback when one is available.

Methods

push — Render a completed result event.

ANSIResultHandler.push

push(
    event: OutputEvent,
) → None

Render a completed result event.

Parameters

event
type: OutputEvent

Output event containing successful or failed result data.

Raises

TypeError

If the event does not contain supported result data.