構建交互式命令行的Python工具箱:Python Prompt Toolkit

jopen 9年前發布 | 14K 次閱讀 Python開發 Python Prompt Toolkit

Python Prompt Toolkit 是構建強大的交互式命令行的Python工具箱。

prompt_toolkit可以作為 GNU readline,的替代品,但它可以做的更多。

 

一些特性:

  • 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.
  • Runs on all Python versions from 2.6 up to 3.4.
  • Works well with Unicode double width characters. (Chinese input.)
  • Selecting text for copy/paste. (Both Emacs and Vi style.)
  • Multiple input buffers.
  • No global state.
  • Lightweight, the only dependencies are Pygments, six and wcwidth.
  • Code written with love.
  • Runs on Linux, OS X, OpenBSD and Windows systems.

項目主頁:http://www.baiduhome.net/lib/view/home/1438505084316

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!