Pyrepl

This is pyrepl, a readline-a-like in Python.

It requires python 2.2 (or newer) with the curses and termios modules built 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 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)
  • unicode support (given terminal support)
  • Last updated 3 Sep, 2009


    User level: Intermediate

    User Rating:

    Homepage

    License(s) :

    Expat

    Rate it!

     

    About

    Leadership
    Related Projects

    Readline

    Versions

    0.8.1

    User Community and Support

    General Resources

    Development

    Developer Resources
    • VCS Checkout Command: svn co http://codespeak.net/svn/pyrepl/trunk/pyrepl
    • Homepage
     

    Please send comments on these web pages to bug-directory@fsf.org, send other questions to info@fsf.org.

    Copyright © 2000 - 2009 Free Software Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA

    The copyright licensing notice below applies to this text. Any software described in this text has its own copyright notice and license, which can usually be found in the distribution itself.

    Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.