Skip to main content

A python implementation of GNU readline.

Project description

pyreadline3

PyPi Badge Publish Test Downloads Downloads Downloads

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


Download files

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

Source Distribution

pyreadline3-3.5.6.tar.gz (100.4 kB view details)

Uploaded Source

Built Distribution

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

pyreadline3-3.5.6-py3-none-any.whl (85.2 kB view details)

Uploaded Python 3

File details

Details for the file pyreadline3-3.5.6.tar.gz.

File metadata

  • Download URL: pyreadline3-3.5.6.tar.gz
  • Upload date:
  • Size: 100.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pyreadline3-3.5.6.tar.gz
Algorithm Hash digest
SHA256 61e53218b99656091ddb077df9e71f25850e72e030b6183b39c9b7e6e4f4a9bf
MD5 28d5a5eb99dcb6f51407794896f620f4
BLAKE2b-256 b66df94028646d7bbe6d9d873c47ee7c246f2d29129d253f0d96cb6fcab70733

See more details on using hashes here.

File details

Details for the file pyreadline3-3.5.6-py3-none-any.whl.

File metadata

  • Download URL: pyreadline3-3.5.6-py3-none-any.whl
  • Upload date:
  • Size: 85.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pyreadline3-3.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8449b734232e42a5dcd74048e39b60db2839a4c38cf3ae2bf7707d58b5389c0d
MD5 d0ed858ae152dab02658d954e087045b
BLAKE2b-256 f75e35c856e186b74678c24927847ad9895a51f1bc02a0c6126477a6c6040064

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