Skip to main content

A Python library for creating Terminal User Interfaces using curses

Reason this release was yanked:

outdated

Project description

number selector

from tuilib import tui

def main(stdscr):
    num:int = tui.number_selector(stdscr,0,0,10) #starts at 0, minimum 0, maximum 10
    tui.func_exit(stdscr)
    print(num)
tui.main(main)

list selector

from tuilib import tui
def main(stdscr):
    options = ["banana","grape","cherry","apple"]
    choice = tui.list_selector(stdscr,options)
    tui.func_exit(stdscr)
    print("you chose",choice)
tui.main(main)

real time input

ok I fixed it anyway

from tuilib import tui
def main(stdscr):
    name:str = tui.real_time_input(stdscr,"what is your name?: ")
    tui.func_exit(stdscr)
    print("hello",name)
tui.main(main)

stdscr functions

same as the curses library

to install:

pip install tuilib

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

tuilib-1.1.6.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

tuilib-1.1.6.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file tuilib-1.1.6.2.tar.gz.

File metadata

  • Download URL: tuilib-1.1.6.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for tuilib-1.1.6.2.tar.gz
Algorithm Hash digest
SHA256 9fe5eb9f98e22a7c6f94b3907c253374b2745d4f9545b14360c98bb5137f4299
MD5 956cc3057f5cbf960274a8aa3f85f745
BLAKE2b-256 275ffd542d6ee66298ff4cc99660f386cf554295d61d2e9810d32a6fac772492

See more details on using hashes here.

File details

Details for the file tuilib-1.1.6.2-py3-none-any.whl.

File metadata

  • Download URL: tuilib-1.1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for tuilib-1.1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c03fbb42c59693a07ddcf99b79ae690d51e157a94f0572bcab15eb03e0ce129b
MD5 a11d79fc75b0cb128eec5ea104ed16bf
BLAKE2b-256 c4a2b4dfde61b5e0f1acc73355aad513d96f29986e5d07d6b80eb584bbd12b7c

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