构建强大的交互式 Python 命令行环境的库:python-prompt-toolkit
jopen
10年前
python-prompt-toolkit是一个用于构建强大的交互式 Python 命令行环境的库。用好了就变成了 Python 中的 Vim 。
特性:
- 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.)
- Reverse and forward incremental search.
- Both Python 3 and Python 2.7 support.
- Works well with Unicode double width characters. (Chinese input.)
- Selecting text for copy/paste. (Both Emacs and Vi style.)
- No global state.
- Code written with love.
- Runs on Linux, OS X, OpenBSD and Windows systems.