Skip to main content

Python Terminal Toolkit

Project description

pyTermTk

Python Terminal Toolkit

Text-based user interface library (TUI) Evolved from the discontinued project pyCuT and inspired by a mix of Qt5,GTK, and tkinter api definition with a touch of personal interpretation

Features

  • Basic widgets for TUI development (Button, Label, checkbox, ...)
  • Specialized widgets to improve the usability (Windows, Frames, Tables, ...)
  • QT Like Layout system to help arrange the widgets in the terminal
  • UTF-8 and true color support

Limitations

  • Only the key combinations forwarded by the terminal emulator used are detected (ALT,CTRL may not be handled)

Tutorial

Be inspired by the tutorial examples

Api Definitions

Don't get bored by the Api Definitions

Install/Upgrade

pyTermTk is available on PyPI

pip3 install --upgrade pyTermTk

Quick Test/Try - no install required

Clone

clone git@github.com:ceccopierangiolieugenio/pyTermTk.git
cd pyTermTk

Run Basic (non ui) input test

python3 tests/test.input.py

Run demo

# Press CTRL-C to exit
# the logs are written to "session.log"
make runDemo
  # or
python3 demo/demo.py -f

# Try gittk
make runGittk

Profiling

cProfile, cProfilev
python3 -m cProfile -o profiler.txt tests/test.ui.004.py

# install cprofilev:
#     pip3 install cprofilev
cprofilev -f profiler.txt
# open http://127.0.0.1:4000
pyroscope

pyroscope can be used as well for profiling

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyTermTk-0.1.0a11.tar.gz (64.5 kB view details)

Uploaded Source

Built Distribution

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

pyTermTk-0.1.0a11-py3-none-any.whl (118.2 kB view details)

Uploaded Python 3

File details

Details for the file pyTermTk-0.1.0a11.tar.gz.

File metadata

  • Download URL: pyTermTk-0.1.0a11.tar.gz
  • Upload date:
  • Size: 64.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for pyTermTk-0.1.0a11.tar.gz
Algorithm Hash digest
SHA256 cb685b643767cb6186817ecebea6ab4c415d84184b2100590458d9bc7f25cc7d
MD5 2a502ea6944cba953abebc791fd9c2e8
BLAKE2b-256 a679241f9ff7f7de980686f68c78a96440cec5f8ebc3614ed560dc77af2710e3

See more details on using hashes here.

File details

Details for the file pyTermTk-0.1.0a11-py3-none-any.whl.

File metadata

  • Download URL: pyTermTk-0.1.0a11-py3-none-any.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for pyTermTk-0.1.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 6235e046ca31c570c8d8336f2944c878cf6ff92b734fe180e9282a99672f435a
MD5 e53722fbf79f4455a130887d8cc613c9
BLAKE2b-256 34d4508eff997fc06702da9a62210dda00291d41fc0c92b488720becd33843f1

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