StaticPH / pyreadline

pyreadline repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyreadline

The pyreadline package is a python implementation of GNU readline functionality.

It is based on the UNC readline package by Gary Bishop which in turn is based on the ctypes module in the standard library.

It is not complete. It has been tested for use with Windows 2000 and Windows XP as well as Windows 10.

Version 2.0 runs on Python 2.6, 2.7, and 3+ using the same code.

Features

  • Keybindings in accordance with the GNU readline library
  • Shift-Arrow keys for text selection
  • Control-C for copy
  • Double tapping Control-C will raise a KeyboardInterrupt
    • use ctrl_c_tap_time_interval(x) where x is your preferred tap time window
    • default 0.3s
  • standard paste which pastes first line of content on clipboard
  • Alternatively, users can set the option IPython_paste
    • which pastes tab-separated data as list of lists or numpy array if all data is numeric
  • paste_multiline_code pastes code that spans multiple lines or has embedded newlines in it.
    • Useful for copy pasting code

The latest development version is always available at the GitHub repository.

pyreadline copyright and licensing notes

Unless indicated otherwise, files in this project are covered by a BSD-type license, included below.

Individual authors are the holders of the copyright for their code and are listed in each file.

Some files may be licensed under different conditions. Ultimately each file indicates clearly the conditions under which its author/authors have decided to publish the code.

pyreadline license

pyreadline is released under a BSD-type license.

Copyright (c) 2006 J�rgen Stenarson <jorgen.stenarson@bostream.nu>.

Copyright (c) 2003-2006 Gary Bishop

Copyright (c) 2003-2006 Jack Trainor

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holders nor the names of any contributors to this software may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

pyreadline repository


Languages

Language:Python 99.9%Language:Batchfile 0.1%