pkg.soopen package index

brew / 排名 4685

使用 Homebrew, apt, dnf 安装 ptpython

查看 ptpython 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ptpython

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install ptpython

Debian stable package indexes · ptpython · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ptpython3

Fedora Rawhide package metadata · ptpython3 · 来源: dl.fedoraproject.org

概览

软件包摘要

Advanced Python REPL

命令和别名

  • ptipython
  • ptpython

历史

项目历史与用法

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.

时间线

  • Project development: ptpython emerged as the prompt-toolkit project's enhanced Python REPL.
  • Current design: The project provides ptpython, ptipython, embedding APIs, and platform-specific configuration discovery.

Related projects

  • prompt_toolkit: The terminal UI and input library underlying ptpython.
  • IPython: Accessible through the ptipython command when installed.
  • ptpdb: An experimental debugger interface mentioned by the project.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:repl

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
$PTPYTHON_CONFIG_HOME/config.py

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ptipythoncli全局可执行文件
ptpythoncli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本3.0.32
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameptpython
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

ptpython 3.0.30-2

Alternative Python Prompt with auto-completion and syntax highlighting

https://github.com/prompt-toolkit/ptpython

sudo apt install ptpython
  • Section: python
  • Architecture: all
  • 5 依赖
  • normalized package name match
  • 匹配方式:Ptpython
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ptpython from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

ptpython 3.0.26-1

Alternative Python Prompt with auto-completion and syntax highlighting

https://github.com/prompt-toolkit/ptpython

sudo apt install ptpython
  • Section: universe/python
  • Architecture: all
  • 7 依赖
  • normalized package name match
  • 匹配方式:Ptpython
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ptpython from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

ptpython3 3.0.31-4.fc45

Python REPL build on top of prompt_toolkit

https://github.com/prompt-toolkit/ptpython

sudo dnf install ptpython3
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ptpython
  • 3 依赖
  • 7 提供
  • normalized package name match
  • 匹配方式:Ptpython
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ptpython3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
dnf95%

ptpython3+ptipython 3.0.31-4.fc45

Metapackage for ptpython3: ptipython extras

https://github.com/prompt-toolkit/ptpython

sudo dnf install ptpython3+ptipython
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ptpython
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Ptpython
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ptpython3+ptipython from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation