Skip to main content

Python translation of @inkjs/ui built on top of pyinkcli

Project description

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.

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

pyinkui-0.1.1.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

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

pyinkui-0.1.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file pyinkui-0.1.1.tar.gz.

File metadata

  • Download URL: pyinkui-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyinkui-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0769840f522dc7fa4ef3f9bca218263e49ae2e86f94dc9ee2dcb16b80ab03357
MD5 6b4977b9340d94261ae63cf40f213c77
BLAKE2b-256 bf5adc0d6369f9faa7b01b6156b57ba5ed516fac3b11b7c892ad7ff481f15b0c

See more details on using hashes here.

File details

Details for the file pyinkui-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyinkui-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyinkui-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e3c3c6dc96282433e4ded2b44f7473fb901b71fc06bf2444e36c6de146070fd
MD5 d087ce90e0991ad548142df7815cb774
BLAKE2b-256 7f3d5218b981cffe099de0c570175b0798cad6a43faa197ce8d442cc6f979ba6

See more details on using hashes here.

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