Python Prompt Toolkit is a library for building powerful interactive command line applications in Python.
It can be a very advanced pure Python replacement for GNU readline, but it can also be used for building full screen applications.
Python Prompt Toolkit is free and open source software.
Key Features
- Syntax highlighting of the input while typing. (For instance, with a Pygments lexer).
- Multi-line input editing.
- Advanced code completion.
- Selecting text for copy/paste. (Both Emacs and Vi style.)
- Mouse support for cursor positioning and scrolling.
- Auto suggestions. (Like fish shell.)
- No global state.
- Like readline:
- Both Emacs and Vi key bindings.
- Reverse and forward incremental search.
- Works well with Unicode double width characters. (Chinese input).
- Lightweight, the only dependencies are Pygments and wcwidth.
- Cross-platform support – runs under Linux, OpenBSD, OS X, and Windows.
Website: python-prompt-toolkit.readthedocs.io
Support: GitHub Code Repository
Developer: Jonathan Slenders
License: BSD 3-Clause “New” or “Revised” License
Python Prompt Toolkit is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Command-Line Python Application Development Tools | |
|---|---|
| Python Fire | Library for automatically generating command line interfaces |
| argparse | Parser for command-line options, arguments and sub-commands |
| Click | Create beautiful command line interfaces in a composable way |
| Typer | Library for building CLI applications |
| Rich | Python library for rich text and beautiful formatting |
| alive-progress | Progress bar, with real-time throughput |
| Gooey | Convert console programs into end-user-friendly GUI software |
| Python Prompt Toolkit | Build powerful interactive command line and terminal applications |
| tqdm | Fast, extensible progress bar for Python and CLI |
| Asciimatics | Create full-screen text UIs from interactive forms to ASCII animations |
| Cement | CLI application framework for Python |
| docopt | Command-line interface description language |
| cliff | Framework for building command line programs |
| Cyclopts | Framework for building command-line interfaces |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.