PyReadline: a ctypes-based readline for Windows

pyreadline is based on UNC readline by Gary Bishop. New features:

Note: UNC readline is not being developed further by Gary, and PyReadline can be considered the continuation of that project. This was done in full agreement with Gary, given his current development priorities.

Mailing list

Questions and bug reports can be directed to the ipython-user mailing list.

Status

Currently no release has been made. You can however run the subversion version.

Dependencies

Install using binary installer

  1. Download installer from here.

  2. make sure no other readline is installed
  3. run installer
  4. The configuration file pyreadlineconfig.ini can be copied from Python24/lib/site-packages/pyreadline/configuration to your HOME directory (usually c:/documents and settings/YOURNAME).
  5. When using ipython pyreadline is automatically activated. If you want to use pyreadline from the interactive prompt of the python interpreter then you have to include the code in Python24/lib/site-packages/pyreadline/configuration/startup.py in your pythonstartup file or set the PYTHONSTARTUP environment variable to point to that file.
  6. Manual can be found in Python24/share/doc/pyreadline

Install using easy_install

Requires setuptools, install by running http://peak.telecommunity.com/dist/ez_setup.py if you haven't already done this.

  1. make sure no other readline is installed
  2. easy_install pyreadline==dev
  3. copy pyreadlineconfig.ini from pyreadline-egg/pyreadline/config to your homedir
    • (usually c:/documents and settings/USERNAME)
  4. copy contents of pyreadline-egg/pyreadline/config/startup.py to your
    • PYTHONSTARTUP file to get pyreadline available at python prompt (not necessary for ipython)

Install using subversion

Requires subversion client

  1. svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline

  2. cd pyreadline
  3. python setup.py install
  4. copy pyreadlineconfig.ini from pyreadline-egg/pyreadline/config to your homedir
    • (usually c:/documents and settings/USERNAME)
  5. copy contents of pyreadline-egg/pyreadline/config/startup.py to your
    • PYTHONSTARTUP file to get pyreadline available at python prompt (not necessary for ipython)

Egg install in development mode using subversion

Requires subversion client

  1. svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline

  2. cd pyreadline
  3. python eggsetup.py develop
  4. Now you can edit the checked out code and test it immediately
  5. copy pyreadlineconfig.ini from pyreadline/pyreadline/config to your homedir
    • (usually c:/documents and settings/USERNAME)
  6. copy contents of pyreadline/pyreadline/config/startup.py to your
    • PYTHONSTARTUP file to get pyreadline available at python prompt (not necessary for ipython)

PyReadline/Intro (last edited 2008-02-02 06:01:51 by OndrejCertik)