awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
prompt-toolkit avatar

prompt-toolkit/ptpython

0
View on GitHub↗
5,439 星标·291 分支·Python·BSD-3-Clause·10 次浏览

Ptpython

ptpython is an enhanced interactive Python REPL and asynchronous console built on the prompt-toolkit library. It provides a customizable command-line interface for executing Python code with support for multiline editing, autocompletion, and syntax highlighting.

The environment supports top-level await statements and asynchronous execution via an integrated event loop. It allows for extensive interface customization, including configurable key bindings for Vi or Emacs navigation and personalized color schemes.

The shell includes capabilities for real-time syntax validation and the execution of system shell commands without leaving the session. It can be integrated as an embedded REPL within other applications or used to wrap external shells to provide additional magic functions.

Features

  • Python Development Tools - Provides an enhanced interactive environment for writing and testing Python code with syntax highlighting and autocompletion.
  • Code Snippet Execution - Provides a command-line interface for executing Python code snippets with syntax highlighting, autocompletion, and multiline editing.
  • Customizable Development Environments - Provides a shell interface that allows users to tailor keybindings and visual themes to their specific workflow.
  • Asynchronous REPLs - Supports an interactive environment for executing asynchronous Python code with top-level await statements.
  • Interactive REPLs - Functions as an enhanced interactive REPL for executing Python code with multiline editing and real-time inspection.
  • REPL Configuration - Offers extensive customization of REPL settings, including color schemes and keyboard navigation bindings.
  • Terminal Interface Toolkits - Built on the prompt-toolkit library to deliver advanced text editing and keyboard navigation within the terminal.
  • Top-Level Await Support - Supports top-level await statements by integrating an asynchronous event loop directly into the interactive session.
  • Asynchronous Event Loops - Integrates an asynchronous event loop to support top-level await and non-blocking operations within the interactive session.
  • Real-time Input Validation - Implements real-time syntax validation that highlights errors with cursor warnings before code is executed.
  • Rapid Prototyping Environments - Provides a workspace optimized for quickly iterating on Python code snippets and system commands.
  • Shell Command Execution - Allows the execution of operating system shell commands directly from the interactive Python prompt.
  • Configurable Input Bindings - Maps keyboard events to specific editing modes like Vi or Emacs via a customizable binding system.
  • Configurable Editing Modes - Provides configurable key bindings and navigation modes for compatibility with Vi and Emacs.
  • Shell Process Wrapping - Encapsulates system shell processes to integrate advanced command-line capabilities and magic functions into the REPL.
  • Embedded Interactive Shells - Integrates a full interactive shell environment into other running applications as a primary input interface.
  • Object Representation Customization - Implements specialized formatting and color schemes for printing different Python object types for improved readability.
  • System Shell Integrations - Integrates external shell capabilities, such as IPython's magic functions, within the language runtime environment.
  • Visual Style Customization - Allows users to personalize the shell interface using custom color schemes and background themes.
  • Real-Time Syntax Validation - Provides real-time visual feedback and error highlighting for syntax mistakes as the user types in the shell.
  • Interactive Interpreters - Advanced REPL built on a powerful terminal toolkit.
  • Programming Tools - Python REPL with configurable Vi mode.

Star 历史

prompt-toolkit/ptpython 的 Star 历史图表prompt-toolkit/ptpython 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Ptpython 的开源替代方案

相似的开源项目,按与 Ptpython 的功能重合度排序。
  • jonathanslenders/ptpythonjonathanslenders 的头像

    jonathanslenders/ptpython

    5,439在 GitHub 上查看↗

    ptpython is a programmable Python interactive shell and development console. It functions as an enhanced REPL for executing Python code and managing runtime state, featuring support for an asynchronous event loop that allows for top-level await statements. The environment is highly customizable, offering pluggable keybinding schemes and adjustable interface appearances. It provides a programmable interface that can be embedded into other applications to facilitate runtime debugging and live state inspection. The shell includes a suite of developer tools for interactive coding, such as automa

    Python
    在 GitHub 上查看↗5,439
  • bobthecow/psyshbobthecow 的头像

    bobthecow/psysh

    9,829在 GitHub 上查看↗

    PsySH is an interactive read-eval-print loop and shell environment for PHP. It functions as a runtime debugger and application inspector, allowing for the execution of PHP code in real-time to experiment with snippets and inspect live application state. The project is distinguished by its ability to be embedded directly into running PHP applications for live troubleshooting. It provides specialized tools for state manipulation, including the ability to bypass visibility restrictions to inspect private or protected object members and the capacity to reload code without restarting the session.

    PHPcliphppsysh
    在 GitHub 上查看↗9,829
  • ipython/ipythonipython 的头像

    ipython/ipython

    16,718在 GitHub 上查看↗

    IPython is an interactive computing environment and programmable extension of the Python read-eval-print loop. It serves as a development tool for writing, testing, and executing code in a live environment designed for rapid prototyping and data exploration. The system differentiates itself through a specialized set of magic commands for environment configuration and system shell integration. It features an object introspection engine for analyzing live program objects at runtime and a frontend-agnostic kernel that allows the execution logic to be embedded into other applications or graphical

    Python
    在 GitHub 上查看↗16,718
  • charmbracelet/freezecharmbracelet 的头像

    charmbracelet/freeze

    4,682在 GitHub 上查看↗

    Freeze is a code-to-image generator and terminal output renderer that converts source code and ANSI terminal text into high-quality images. It functions as a command-line tool that transforms text and styled sequences into scalable vector graphics for use in documentation and presentations. The tool differentiates itself by capturing raw output from shell commands via a pseudo-terminal environment and translating ANSI escape codes and colors directly into SVG styles. It features a terminal user interface for real-time parameter adjustment and supports configuration profiles to maintain consis

    Go
    在 GitHub 上查看↗4,682
查看 Ptpython 的所有 30 个替代方案→

常见问题解答

prompt-toolkit/ptpython 是做什么的?

ptpython is an enhanced interactive Python REPL and asynchronous console built on the prompt-toolkit library. It provides a customizable command-line interface for executing Python code with support for multiline editing, autocompletion, and syntax highlighting.

prompt-toolkit/ptpython 的主要功能有哪些?

prompt-toolkit/ptpython 的主要功能包括:Python Development Tools, Code Snippet Execution, Customizable Development Environments, Asynchronous REPLs, Interactive REPLs, REPL Configuration, Terminal Interface Toolkits, Top-Level Await Support。

prompt-toolkit/ptpython 有哪些开源替代品?

prompt-toolkit/ptpython 的开源替代品包括: jonathanslenders/ptpython — ptpython is a programmable Python interactive shell and development console. It functions as an enhanced REPL for… bobthecow/psysh — PsySH is an interactive read-eval-print loop and shell environment for PHP. It functions as a runtime debugger and… ipython/ipython — IPython is an interactive computing environment and programmable extension of the Python read-eval-print loop. It… charmbracelet/freeze — Freeze is a code-to-image generator and terminal output renderer that converts source code and ANSI terminal text into… janet-lang/janet — Janet is a Lisp-based dynamic programming language featuring a register-based bytecode virtual machine and an… crazyguitar/pysheeet — pysheeet is a technical reference library providing a curated collection of code snippets and implementation patterns…