close
pkg.soopen package index

brew / rank 4513

Install ptpython with Homebrew, apt, dnf

Advanced Python REPL. Version 3.0.32 via Homebrew; verified from local package data. Also installable with debian: sudo apt install ptpython.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ptpython

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install ptpython

Debian stable package indexes · ptpython · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install ptpython3

Fedora Rawhide package metadata · ptpython3 · source: dl.fedoraproject.org

overview

Package summary

Advanced Python REPL

Commands and aliases

  • ptipython
  • ptpython

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:repl

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

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

executables

Installed executables

CommandKindExposureNote
ptipythoncliglobal executable
ptpythoncliglobal executable

freshness

Version and 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.

page generated2026-08-22
manager version3.0.32
manager updated
local dataok
upstreamnot checked
latest detectednot detected

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

install metadata

Package metadata

Package keybrew:ptpython
Version3.0.32
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ptpython
Homepagehttps://github.com/prompt-toolkit/ptpython
Repositoryhttps://github.com/prompt-toolkit/ptpython
LicenseBSD-3-Clause
Source archivehttps://files.pythonhosted.org/packages/b6/8c/7e904ceeb512b4530c7ca1d918d3565d694a1fa7df337cdfc36a16347d68/ptpython-3.0.32.tar.gz
Dependenciespython@3.14
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 7 provides
  • normalized package name match
  • Matched by: 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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