pyinkui is a Python translation of @inkjs/ui, built on top of the already-translated pyinkcli runtime.
pyproject.toml installs pyinkcli directly from:
https://github.com/quantmew/pyinkcli.git
pip install -e .from pyinkcli import Box, render
from pyinkui import Spinner, StatusMessage
def App():
return Box(
Spinner(label="Loading"),
StatusMessage("Ready", variant="success"),
flexDirection="column",
)
render(App).wait_until_exit()PYTHONPATH=src pytestExamples are optimized to be directly runnable with Python. They keep the upstream-facing filenames where practical, and use a small bootstrap helper to ensure the local src/ tree is imported correctly.
MIT. The license text is copied from upstream ink-ui.