pyrepl
This is pyrepl, a readline-a-like in pure Python.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrepl-0.11.5.tar.gz | 51.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|