Skip to main content

pyrepl

This is pyrepl, a readline-a-like in pure Python.

tests lint codecov

It requires python 3.8 (or newer) and features:

  • sane multi-line editing
  • history, with incremental search
  • completion, including displaying of available options
  • a fairly large subset of the readline emacs-mode keybindings (adding more is mostly just a matter of typing)
  • a liberal, Python-style, license
  • a new python top-level
  • no global variables, so you can run two or more independent readers without having their histories interfering.
  • no hogging of control -- it should be easy to integrate pyrepl into YOUR application's event loop.
  • generally speaking, a much more interactive experience than readline (it's a bit like a cross between readline and emacs's mini-buffer)

There are probably still a few little bugs & misfeatures, but I like it, and use it as my python top-level most of the time.

To get a feel for it, just execute:

python pyrepl/pythoni.py

(One point that may confuse: because the arrow keys are used to move up and down in the command currently being edited, you need to use ^P and ^N to move through the history)

Installation

If you like what you see, you can install it with the familiar

$ pip install pyrepl

which will also install pythoni script.

Changelog

See CHANGELOG

Release files for pyrepl 0.11.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrepl 0.11.5
File Size Uploaded
pyrepl-0.11.5.tar.gz 51.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrepl 0.11.5
File Interpreter ABI Platform
pyrepl-0.11.5-py3-none-any.whl Python 3 none any Details

Total release size: 107.4 kB

Release files / pyrepl-0.11.5.tar.gz

Download URL pyrepl-0.11.5.tar.gz
Size 51.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ca5ac139835636005bed2bb0b6e2168de31a093e03a5b95edccbdbb7ca69b6fc
BLAKE2b-256 checksum
How to use checksums
fdaf7d1d9fb380a05566a330626198d0336a7f7c0153f1470e9e58b3a5484360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pyrepl-0.11.5-py3-none-any.whl

Download URL pyrepl-0.11.5-py3-none-any.whl
Size 55.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee3aeb23427c7e8e2abbecf003e59ebc7af331e61e3f6b65c10f6b3962ad1ae7
BLAKE2b-256 checksum
How to use checksums
cc3879b886bbee79d35063e1fff2c370b46e9ecc2c4c39acef583bc8c2f07d3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.11.5 This release

2 release files

0.11.4

2 release files

0.11.3

2 release files

0.9.0

1 release file

0.8.4

1 release file

0.8.2

1 release file

0.8.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page