Python Prompt Toolkit¶
prompt_toolkit is a Library for building interactive command lines in Python.
It could be a replacement for readline. It’s Pure Python, and has some advanced features:
- Syntax highlighting of the input while typing. (Usually with a Pygments lexer.)
- Multiline input
- Advanced code completion
- Both Emacs and Vi keybindings (Similar to readline), including reverse and forward incremental search
On top of that, it implements prompt_toolkit.shell, a library for shell-like interfaces. You can define the grammar of the input string, ...
Thanks to:
- Pygments
- wcwidth
- Simple example. (Most simple example, alternative to raw_input.)
- Architecture of a line