GNU Readline-like line editing module
Project description
A Python module that provides GNU Readline-like line editing functions (the default Emacs-style ones). If you just want to use Readline, use the readline package in the standard library–but this package allows access to those capabilties in settings outside of a standard CLI.
Currently, all stateless Readline commands are implemented. This means that yanking and history aren’t supported yet (but they are on the to-do list).
This module is especially well-suited to interfacing with Urwid due to a shared syntax for describing key inputs.
Installation
Install or upgrade to the latest version from PyPI:
[sudo] pip install -U readlike
Quick example
Transpose words:
>>> import readlike >>> readlike.edit('perilous siege', 9, 'meta t') ('siege perilous', 14)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for readlike-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17e052958d5fd698ce87d00b0567a8d49df4a9787ff6cd685a2f7d98d674495 |
|
MD5 | f117959028adf3a11be76117b488a787 |
|
BLAKE2b-256 | 2883aa73ab931741ae7aaa95fee6622d7c6f9c4af2fd5650759c72c0b8e1c33c |