ptpython

An enhanced Python REPL with syntax highlighting, completion, multiline editing, and configurable key bindings.

By The prompt-toolkit contributors

Compare ptpython with another product

Alternatives

See all alternatives

About ptpython

ptpython is an interactive Python shell for exploring code and running commands. It adds syntax highlighting, autocompletion, multiline editing, mouse support, color schemes, and both Vi and Emacs key bindings.

Install it with pip and start it from a terminal. It also supports command-line options for running scripts, entering interactive mode, and enabling an asyncio event loop for top-level await.

Strengths

  • Syntax highlighting and autocompletion
  • Multiline editing with Vi or Emacs key bindings
  • Can run scripts before opening an interactive shell

Limitations

  • Requires Python 3.6 or later for this version

Details

Pricing
FreeFree and open source under the BSD 3-Clause license.
License
BSD-3-Clause
Developer
The prompt-toolkit contributors
Platforms
Command line
How it runs
Downloadable app
Best suited for
Python developers who want a more capable interactive shell
Last verified
Added
Provenance
Selected from the Homebrew formula

Report a wrong fact or a dead link on this listing