prompt-toolkit/python-prompt-toolkit

Library for building powerful interactive command line applications in Python

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 10 minutes ago
Added to GitGenius on September 5th, 2026
Created on January 25th, 2014
Open Issues & Pull Requests: 713 (+0)
GitHub issues: Enabled
Number of forks: 806
Total Stargazers: 10,566 (+0)
Total Subscribers: 147 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 35.4 hours
Mean response time: 109.5 days
90th percentile: 323.6 days
Tracked items: 69

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 96% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 8% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 85
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 940 days
Stale 30+ days: 82
Stale 90+ days: 80

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (2)
  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Python Prompt Toolkit is a library for building powerful interactive command line applications in Python.

The library solves the problem of creating sophisticated terminal user interfaces by providing a comprehensive toolkit that goes beyond traditional readline functionality. It handles the complexity of input editing, syntax highlighting, code completion, and key bindings through a pure Python implementation. The approach abstracts away platform differences, offering consistent behavior across Unix and Windows systems while allowing developers to compose features like multi-line editing, auto-suggestions, and mouse support into their applications.

Developers should choose this tool when building interactive command-line applications that need more than basic input handling. It suits projects ranging from simple prompts to full-featured REPLs and shells. The library is particularly valuable for applications requiring syntax highlighting, advanced completion, or Vi and Emacs key bindings. Unlike GNU readline, which it can replace, the tool is written entirely in Python with minimal dependencies, making it easier to install and customize without system-level readline libraries.

The project maintains active engagement with bug reports and feature requests, welcoming community contributions through pull requests. Development prioritizes cross-platform compatibility, with particular attention to Windows support on recent builds where VT100 escape sequences are available. The codebase emphasizes having no global state, keeping the implementation lightweight, and providing well-documented examples that each demonstrate a single concept to help new users understand the library's capabilities.