Skip to content

Releases

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 13:17
chore(release): 0.2.0

Co-Authored-By: KohakuTerrarium <noreply@kohaku-lab.org>

Nightly 0.2.0.dev20261109111457

Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 11:17

Automatic nightly build (not a stable release).

Version: 0.2.0.dev20261109111457

Source commit: 7e16346

KohakuTUI 0.1.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 14:42

The first public release of KohakuTUI: terminal UIs for Python, rendered by Rust.

You describe what is on screen as a tree of nodes from Python; a Rust engine on its own thread owns the terminal, the frame loop and every keystroke. Use it for training monitors, dashboards, interactive CLI tools, log viewers or chat front ends.

pip install kohakutui
python -m kohakutui demo dashboard

Highlights

  • Inline and full screen, same code. Inline mode redraws a small live area at the bottom and writes everything finished into the terminal's real scrollback. Full screen adds panes, scrolling and the mouse. ctrl+t switches between them at runtime.
  • Live data. Line charts over a whole run, sparklines, progress bars with rate and ETA, tables, key/value lists, logs that handle \r progress lines.
  • Text. Markdown (streamed or whole), code blocks, foldable cells with summaries, scroll boxes, groups that fold into one "N items" header.
  • Input and dialogs. A multi-line input box with history and a / command popup; pickers with a fuzzy filter, a section sidebar, multi-select and per-item options; prompts (including secret input), confirmations, cards. Dialogs open where the input box is and never trap the user: esc always gets out.
  • Full screen. Wheel scrolling, clickable and keyboard-navigable folds (ctrl+↑), hover, drag to select and copy (OSC 52).
  • Themes. Eight schemes (kohaku-dark, kohaku-light, tokyo-night, solarized-dark/light, colorblind-dark/light, terminal), truecolor with a 256-colour fallback, switchable at runtime.
  • Threads and asyncio. Any thread may update the screen; dialogs have blocking (app.choose) and await (app.achoose) forms. print and logging can be captured into the transcript.
  • Testable. App(backend="test") runs headless on an emulated terminal: inject keys, read screen(), history() or screen_cells() (with colours and attributes).

Platforms

One abi3 wheel per platform covers CPython 3.10 and newer, with no runtime dependencies:

OS Architectures
Linux (manylinux 2.28) x86_64, aarch64
Windows x86_64
macOS arm64, x86_64

Other platforms build from the sdist with a stable Rust toolchain.

Demos

python -m kohakutui demo dashboard  # full-screen training monitor
python -m kohakutui demo train      # inline training run, results in scrollback
python -m kohakutui demo chat       # streamed Markdown, an input box, a picker
python -m kohakutui demo agent      # an assistant session: folded steps, an approval card, background tasks
python -m kohakutui reset           # fix a terminal left in raw mode

Documentation

Getting started · Concepts · Components · Dialogs and input · Themes · Testing

Notes

  • 0.x: the Python API may still change between minor versions.
  • Nightly builds are published to PyPI as 0.1.0.devYYYYMMDDHHMMSS prereleases; pip install --pre kohakutui picks them up.