prompt-toolkit 3.0.43


Library for building powerful interactive command lines in Python

Library for building powerful interactive command lines in Python

Stars: 8927, Watchers: 8927, Forks: 701, Open Issues: 616

The prompt-toolkit/python-prompt-toolkit repo was created 10 years ago and the last code push was 14 hours ago.
The project is extremely popular with a mindblowing 8927 github stars!

How to Install prompt-toolkit

You can install prompt-toolkit using pip

pip install prompt-toolkit

or add it to a project with poetry

poetry add prompt-toolkit

Package Details

Jonathan Slenders
GitHub Repo:


  • Software Development
No  prompt-toolkit  pypi packages just yet.


A list of common prompt-toolkit errors.

Code Examples

Here are some prompt-toolkit code examples and snippets.

GitHub Issues

The prompt-toolkit package has 616 open issues on GitHub

  • Stdin is not a terminal
  • How do I create cascaded/nested menus
  • [Question] How to pass a default value to input_dialog()
  • How can I get the (row,column) position of the text cursor?
  • Fix mypy errors
  • prompt toolkit accept when enter pressed
  • mypy errors on examples from Dialog documentation
  • style_from_dict / Token is not found inside version 8.0.0
  • Built-in completers provided with a map(...) iterable instead of a list(...) only complete once
  • Add Python 3.10 to GitHub workflow.
  • Commit 148833e9 (released in 3.0.4) changed undo's behavior in vi mode
  • run as background process, connect to active terminal session
  • meta_dict for NestedCompleter?
  • [wip] Refactoring to the Keys class.
  • Preferred way to display charts/plots

See more issues on GitHub