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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrepl-0.11.5.tar.gz (51.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrepl-0.11.5-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrepl-0.11.5.tar.gz.

File metadata

  • Download URL: pyrepl-0.11.5.tar.gz
  • Upload date:
  • Size: 51.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyrepl-0.11.5.tar.gz
Algorithm Hash digest
SHA256 ca5ac139835636005bed2bb0b6e2168de31a093e03a5b95edccbdbb7ca69b6fc
MD5 dca03d02dc658be6b080a755d71b7919
BLAKE2b-256 fdaf7d1d9fb380a05566a330626198d0336a7f7c0153f1470e9e58b3a5484360

See more details on using hashes here.

File details

Details for the file pyrepl-0.11.5-py3-none-any.whl.

File metadata

  • Download URL: pyrepl-0.11.5-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyrepl-0.11.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ee3aeb23427c7e8e2abbecf003e59ebc7af331e61e3f6b65c10f6b3962ad1ae7
MD5 f2fdf2eb56bd2571b9fceb78daa79746
BLAKE2b-256 cc3879b886bbee79d35063e1fff2c370b46e9ecc2c4c39acef583bc8c2f07d3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page