Skip to content

quantmew/pyinkui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyinkui

pyinkui is a Python translation of @inkjs/ui, built on top of the already-translated pyinkcli runtime.

Installation

pyproject.toml installs pyinkcli directly from:

  • https://github.com/quantmew/pyinkcli.git
pip install -e .

Quick Start

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()

Testing

PYTHONPATH=src pytest

Examples

Examples 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.

License

MIT. The license text is copied from upstream ink-ui.

About

💄 Ink-redible command-line interfaces made easy (A pure Python port)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors