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.0.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.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyinkui-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9d449dfaec5e7d26c218f71a61bffa9459438dbb4aca46fc06a51c45ac02611f
MD5 3b7ce494caeabf198a933858e657675a
BLAKE2b-256 97d1edbad1c4d4e009e207e0140bb79a9b7206ad3776dacd8d2652f0adfd669c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinkui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae85a6a5456a537ed52e8cddce22083351a34674d5ae773824e5184532f4498
MD5 a25ff24dfa89ac133bf1c6d95d72370b
BLAKE2b-256 127385c9911a27f391b12f45489dc95bbd80507373a0eca189179922c7e91a40

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