macOS
brew install ptpythonlocal Homebrew formula metadata
安装
brew install ptpythonlocal Homebrew formula metadata
sudo apt install ptpythonDebian stable package indexes · ptpython · 来源: deb.debian.org
sudo dnf install ptpython3Fedora Rawhide package metadata · ptpython3 · 来源: dl.fedoraproject.org
概览
Advanced Python REPL
历史
ptpython is an advanced, cross-platform Python REPL built with prompt_toolkit. It adds syntax highlighting, multiline editing, completion, mouse support, configurable key bindings, history, and top-level await support.
ptpython was developed in the prompt-toolkit project as an enhanced Python interactive shell built on prompt_toolkit. Its official repository continues to maintain the standalone ptpython and ptipython commands.
ptpython is distributed through Python and operating-system package ecosystems and is also integrated by tools such as django-extensions, whose shell_plus command can select ptpython or its IPython-enabled variant.
Users launch ptpython as a replacement interactive Python shell, use ptipython for IPython features, or embed the REPL in Python applications. Configuration is supplied through config.py or an explicit --config-file option; PTPYTHON_CONFIG_HOME overrides the configuration directory.
ptpython demonstrates how a language REPL can be rebuilt around a reusable terminal-interface library. It is notable for combining modern interactive editing with the familiar Python execution model and for offering both standalone and embeddable entry points.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$PTPYTHON_CONFIG_HOME/config.py可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ptipython | cli | 全局可执行文件 | |
ptpython | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/prompt-toolkit/ptpython
安装元数据
| 软件包键 | brew:ptpython |
|---|---|
| 版本 | 3.0.32 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ptpython |
| 主页 | https://github.com/prompt-toolkit/ptpython |
| 仓库 | https://github.com/prompt-toolkit/ptpython |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://files.pythonhosted.org/packages/b6/8c/7e904ceeb512b4530c7ca1d918d3565d694a1fa7df337cdfc36a16347d68/ptpython-3.0.32.tar.gz |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ptpython |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ptpython 3.0.30-2
Alternative Python Prompt with auto-completion and syntax highlighting
https://github.com/prompt-toolkit/ptpython
sudo apt install ptpythonptpython 3.0.26-1
Alternative Python Prompt with auto-completion and syntax highlighting
https://github.com/prompt-toolkit/ptpython
sudo apt install ptpythonptpython3 3.0.31-4.fc45
Python REPL build on top of prompt_toolkit
https://github.com/prompt-toolkit/ptpython
sudo dnf install ptpython3ptpython3+ptipython 3.0.31-4.fc45
Metapackage for ptpython3: ptipython extras
https://github.com/prompt-toolkit/ptpython
sudo dnf install ptpython3+ptipython来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.