prompt_toolkit could be a replacement for GNU readline, but it can be much more than that. Some features: Pure Python. Syntax highlighting of the input while typing. (For instance, with a Pygments lexer.) Multi-line input editing. Advanced code completion. Both Emacs and Vi key bindings. (Similar to readline.) Even some advanced Vi functionality, like named registers and digraphs. Reverse and forw

