A python implementation of GNU readline.
Project description
pyreadline3
The pyreadline3
package is based on the stale package pyreadline
located
here.
The original pyreadline
package is a Python implementation of GNU readline
functionality.
It is based on the ctypes
based UNC readline
package by Gary Bishop.
It is not complete.
It has been tested for use with Windows 10.
Version 3.4+ of pyreadline3 runs on Python 3.8+.
pyreadline3
is available on PyPI and can be installed with
pip install pyreadline3
Features
- keyboard text selection and copy/paste
- Shift-arrowkeys for text selection
- Control-c can be used for copy activate with allow_ctrl_c(True) in config file
- Double tapping ctrl-c will raise a KeyboardInterrupt, use ctrl_c_tap_time_interval(x)
- where x is your preferred tap time window, default 0.3 s.
- paste pastes first line of content on clipboard.
- ipython_paste, pastes tab-separated data as list of lists or numpy array if all data is numeric
- paste_mulitline_code pastes multi line code, removing any empty lines.
The latest development version is always available at the project git repository
Development
To clone the library for development:
git clone git@github.com:pyreadline3/pyreadline3.git
or
git clone https://github.com/pyreadline3/pyreadline3.git
Build The Virtual Environment
The current earliest Python version supported is 3.8
. You need to be able to create a virtual environment at this version to make sure any changes you make is combatible.
If you are using conda
:
conda create --prefix=.venv python=3.8 --yes
If you are using venv
, make sure you have the right base package:
>> python --version
Python 3.8.x
Once you verify your base Python, you can then create a virtual environment using:
virtualenv -p py3.8 .venv
Setup
Once you have created your virtual environment and made sure it is active in your current command line:
pip install -e .[dev]
This should all the dependencies you need for developing into the library and also allow you to run the unit tests:
pytest
Debugging
WIP
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pyreadline3-3.5.4.tar.gz
.
File metadata
- Download URL: pyreadline3-3.5.4.tar.gz
- Upload date:
- Size: 99.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d57d53039a1c75adba8e50dd3d992b28143480816187ea5efbd5c78e6c885b7 |
|
MD5 | 395610f91cff4cdc624fb90f0d8c9826 |
|
BLAKE2b-256 | 0f494cea918a08f02817aabae639e3d0ac046fef9f9180518a3ad394e22da148 |
File details
Details for the file pyreadline3-3.5.4-py3-none-any.whl
.
File metadata
- Download URL: pyreadline3-3.5.4-py3-none-any.whl
- Upload date:
- Size: 83.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf8e6cc3c49bcccf145fc6067ba8643d1df34d604a1ec0eccbf7a18e6d3fae6 |
|
MD5 | 3436bf88195d50e33be4b9262b7f0463 |
|
BLAKE2b-256 | 5adc491b7661614ab97483abf2056be1deee4dc2490ecbf7bff9ab5cdbac86e1 |