Skip to content

base

Console primitives: the two shared Consoles and the stage-progress facade.

Copyright 2025 Ambiq. All Rights Reserved.

Classes

AotConsole

AotConsole(verbosity: int = 1, *, explicit: bool = True)

Stage-progress renderer for pipeline runs.

Verbosity contract (CLI-installed consoles): 0: results only (no stage narration) 1 (default): phase headers + per-stage spinner resolving to ✓ 0.4s 2+: same, plus INFO/DEBUG logging interleaves via the shared stderr console

The implicit default console (library use without :func:set_console) is fully silent — AotConverter.convert() must not narrate to stderr or print to stdout unless a console was explicitly installed. Logging still receives the plain-text mirror either way.

Functions

results
results(context, elapsed: float) -> None

Render the closing results frame (explicitly installed consoles only).

Functions

get_console

get_console() -> AotConsole

The active console; silent (implicit) when none was installed.

set_console

set_console(verbosity: int) -> AotConsole

Install the run's console (called once by the CLI entry point).