Skip to main content

A configurable hacker-style terminal UI toolkit driven by YAML screens, widgets, and providers.

Project description

Hatui

Hatui is a configurable hacker-style terminal UI toolkit for Python. It lets you compose full-screen TUIs from YAML screens, reusable widgets, themes, routing, and data providers.

Install

Recommended for end users:

pipx install hatui-kit

Python package install:

pip install hatui-kit

Installed CLI command:

hatui

Windows convenience build:

  • Download hatui-windows-amd64.zip from GitHub Releases
  • Unzip it
  • Run hatui.exe

Quick start

Run the bundled demo:

hatui

Validate the bundled demo spec:

hatui validate

Render a non-interactive preview:

hatui preview --width 100 --height 28 --frames 1

Run a custom spec:

hatui run path/to/screen.yaml

What Hatui provides

  • declarative YAML screen loading with includes
  • widget and provider registries
  • routing, modals, focus traversal, and debug overlays
  • theme slots, color tokens, and font tokens
  • reusable hacker-style widgets for dashboards and console simulations

Example custom spec

theme:
  preset: clean_ops

providers:
  - type: constant
    name: hello_text
    target: ui.hello
    value: Hello from Hatui

screen:
  type: box
  name: root_box
  title: demo
  padding: 1
  child:
    type: text
    name: hello_text
    text_key: ui.hello

Run it with:

hatui run ./demo.yaml

Development

Editable install:

python -m pip install -e .

Smoke checks:

python -m compileall src
PYTHONPATH=src python -m hatui validate
PYTHONPATH=src python -m hatui preview --width 100 --height 28 --frames 1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatui_kit-0.1.0.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatui_kit-0.1.0-py3-none-any.whl (117.2 kB view details)

Uploaded Python 3

File details

Details for the file hatui_kit-0.1.0.tar.gz.

File metadata

  • Download URL: hatui_kit-0.1.0.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatui_kit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea0607b2767b86bb80fbfd232de2033d1d68b0b0c4ef92410aca762880de4222
MD5 2d4cbafc5a80a4315f270eb3247eee0d
BLAKE2b-256 3b48035faf87af69cc1c7552315daa85fcbafb6e272e2364a054a3a462138064

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatui_kit-0.1.0.tar.gz:

Publisher: release.yml on almajd3713/hacker_tui_sim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hatui_kit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hatui_kit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 117.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatui_kit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3142fb0e9f4a7f69b5ed730ea813087494e0d8ef67e1b33e4d8de6ece6be7d1
MD5 51f97dc7b9dc94956ef6fae2de6acee7
BLAKE2b-256 3fc50cb8fe0559c00c149c00468cb11be5e69e021770f1d6fefe66c1a1cbd4bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatui_kit-0.1.0-py3-none-any.whl:

Publisher: release.yml on almajd3713/hacker_tui_sim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page