AQIT 0.1.0
Loading...
Searching...
No Matches
aquin.status_display Namespace Reference

Classes

class  StatusSnapshot

Functions

StatusSnapshot collect_status_snapshot (*, str|None account=None, str|None active_id=None, str|None token_masked=None, list[str]|None other_accounts=None, str|None live_note=None, bool logged_in=True)
list[tuple[str, str]] _status_rows (StatusSnapshot snapshot)
dict[str, Any] status_payload (StatusSnapshot snapshot)
None render_status (StatusSnapshot snapshot, *, bool plain=False)
None render_status_ascii (StatusSnapshot snapshot)
None collect_and_render_status (*, str|None account, str|None active_id, str|None token_masked, list[str] other_accounts, str|None live_note=None)
str|None _gpu_line_from_state (dict[str, Any] state)
str _engine_line_fast ()

Function Documentation

◆ _engine_line_fast()

str _engine_line_fast ( )
protected

Definition at line 182 of file status_display.py.

Referenced by collect_status_snapshot().

◆ _gpu_line_from_state()

str | None _gpu_line_from_state ( dict[str, Any] state)
protected

Definition at line 141 of file status_display.py.

Referenced by collect_status_snapshot().

◆ _status_rows()

list[tuple[str, str]] _status_rows ( StatusSnapshot snapshot)
protected
Small set of rows for the default human status output.

Definition at line 81 of file status_display.py.

Referenced by render_status(), and status_payload().

◆ collect_and_render_status()

None collect_and_render_status ( * ,
str | None account,
str | None active_id,
str | None token_masked,
list[str] other_accounts,
str | None live_note = None )

Definition at line 122 of file status_display.py.

References collect_status_snapshot(), and render_status().

◆ collect_status_snapshot()

StatusSnapshot collect_status_snapshot ( * ,
str | None account = None,
str | None active_id = None,
str | None token_masked = None,
list[str] | None other_accounts = None,
str | None live_note = None,
bool logged_in = True )
Gather local state only (no network). Auth is not required.

Definition at line 32 of file status_display.py.

References _engine_line_fast(), and _gpu_line_from_state().

Referenced by collect_and_render_status().

◆ render_status()

None render_status ( StatusSnapshot snapshot,
* ,
bool plain = False )
Print a small static status summary.

Definition at line 108 of file status_display.py.

References _status_rows().

Referenced by collect_and_render_status(), and render_status_ascii().

◆ render_status_ascii()

None render_status_ascii ( StatusSnapshot snapshot)

Definition at line 118 of file status_display.py.

References render_status().

◆ status_payload()

dict[str, Any] status_payload ( StatusSnapshot snapshot)
Machine-readable status for Ink / scripts (`aquin status --json`).

Definition at line 101 of file status_display.py.

References _status_rows().