macOS
brew install ptpythonlocal Homebrew formula metadata
brew / rank 4513
Advanced Python REPL. Version 3.0.32 via Homebrew; verified from local package data. Also installable with debian: sudo apt install ptpython.
install
brew install ptpythonlocal Homebrew formula metadata
sudo apt install ptpythonDebian stable package indexes · ptpython · source: deb.debian.org
sudo dnf install ptpython3Fedora Rawhide package metadata · ptpython3 · source: dl.fedoraproject.org
overview
Advanced Python REPL
history
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.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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.pyexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ptipython | cli | global executable | |
ptpython | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/prompt-toolkit/ptpython
install metadata
| Package key | brew:ptpython |
|---|---|
| Version | 3.0.32 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ptpython |
| Homepage | https://github.com/prompt-toolkit/ptpython |
| Repository | https://github.com/prompt-toolkit/ptpython |
| License | BSD-3-Clause |
| Source archive | https://files.pythonhosted.org/packages/b6/8c/7e904ceeb512b4530c7ca1d918d3565d694a1fa7df337cdfc36a16347d68/ptpython-3.0.32.tar.gz |
| Dependencies | python@3.14 |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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+ptipythonsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.