Skip to main content

The standard Python readline extension statically linked against the GNU readline library.

Project description

Stand-alone GNU readline module

First… STOP

Consider this: do you really need this package in 2019? You typically don’t if

  • you use the Python provided by a standard Linux distribution like Ubuntu Debian, CentOS, etc. (It already uses the proper readline.)

  • you run Windows (It won’t work! Try pyreadline instead.)

  • you use the Python provided by Homebrew or Fink on macOS (It has real readline already!)

  • you want it for IPython (It switched to prompt_toolkit in version 5.0.)

  • you use a Python distribution like Anaconda or Enthought / Canopy (Again, real readline.)

You might need it if

  • you use Python provided by MacPorts or the system on macOS (Python compiled against libedit.)

  • you use a Python distribution like ActivePython on Linux or macOS (This used to ship without readline.)

  • you want to get the latest bug fixes and features in either the readline library or its Python module (Typically when stuck on older systems.)

Still interested?

Some platforms, such as macOS, do not ship with GNU readline installed. The readline extension module in the standard library of Mac “system” Python uses NetBSD’s editline (libedit) library instead, which is a readline replacement with a less restrictive software license.

As the alternatives to GNU readline do not have fully equivalent functionality, it is useful to add proper readline support to these platforms. This module achieves this by bundling the standard Python readline module with the GNU readline source code, which is compiled and statically linked to it. The end result is a package which is simple to install and requires no extra shared libraries.

The module is called gnureadline so as not to clash with the readline module in the standard library. This keeps polite installers such as pip happy and is sufficient for shells such as IPython. Please take note that IPython does not depend on gnureadline anymore since version 5.0 as it now uses prompt_toolkit instead.

In order to use this module in the standard Python shell it has to be installed with the more impolite easy_install from setuptools. It is recommended that you use pip >= 8.0 together with setuptools >= 0.8 to install gnureadline. This will download a binary wheel from PyPI if available, thereby bypassing the need for compilation and its slew of potential problems (especially on macOS).

The module can be used with both Python 2.x and 3.x, and has been tested with Python versions 2.6, 2.7, and 3.2 to 3.8. The first three numbers of the module version reflect the version of the underlying GNU readline library (major, minor and patch level), while any additional fourth number distinguishes different module updates based on the same readline library.

This module is usually unnecessary on Linux and other Unix systems with default readline support. An exception is if you have a Python distribution that does not include GNU readline due to licensing restrictions (such as ActiveState’s ActivePython). If you are using Windows, which also ships without GNU readline, you might want to consider using the pyreadline module instead, which is a readline replacement written in pure Python that interacts with the Windows clipboard.

The latest development version is available from the GitHub repository.

History

8.0.0 (2019-07-10)

  • Uses Python 3.7.3 readline.c (commit ef10f88, 2019-03-20), also OK for 3.8

  • Uses Python 3.6.8 readline.c (commit 25555e0, 2018-12-08)

  • Uses Python 3.4.4 readline.c (commit 7462b64, 2015-11-02)

  • Uses Python 2.7.16 readline.c (commit 89b5ea2, 2018-12-19)

  • Updated to build against readline 8.0

6.3.8 (2017-10-20)

  • #42, #44: Address compiler issues (avoid Cygwin, fix multi-arch on gcc)

  • #40: Make GPLv3 license explicit

  • #39: Look for bash shell in more places

  • Uses Python 2.x readline.c from hg 2.7 branch (95814:192f9efe4a38)

  • Uses Python 3.x readline.c from hg 3.4 / 3.5 branch (95813:ec6ed10d611e)

  • Updated to build against readline 6.3 (patch-level 8)

6.3.3 (2014-04-08)

  • Major rework of OS X build process (detect arches, no custom flags)

  • #20, #22, #28: Various issues addressed by new streamlined build

  • #28: Use $CC or cc to compile libreadline instead of default gcc

  • #35: Workaround for clang from Xcode 5.1 and Mac OS X 10.9.2

  • Uses Python 3.4 readline.c from hg 3.4 branch (89086:3110fb3095a2)

  • Updated to build against readline 6.3 (patch-level 3)

6.2.5 (2014-02-19)

  • Renamed module to gnureadline to improve installation with pip

  • #23, #25-27, #29-33: Tweaks and package reworked to gnureadline

  • Uses Python 2.x readline.c from hg 2.7 branch (89084:6b10943a5916)

  • Uses Python 3.x readline.c from hg 3.3 branch (89085:6adac0d9b933)

  • Updated to build against readline 6.2 (patch-level 5)

6.2.4.1 (2012-10-22)

  • #21: Fixed building on Python.org 3.3 / Mac OS 10.8

6.2.4 (2012-10-17)

  • #15: Improved detection of compilers before Xcode 4.3

  • Uses Python 3.x readline.c from v3.3.0 tag (changeset 73997)

  • Updated to build against readline 6.2 (patch-level 4)

6.2.2 (2012-02-24)

  • #14: Fixed compilation with Xcode 4.3 on Mac OS 10.7

  • Updated to build against readline 6.2 (patch-level 2)

6.2.1 (2011-08-31)

  • #10: Fixed ‘_emacs_meta_keymap’ missing symbol on Mac OS 10.7

  • #7: Fixed SDK version check to work with Mac OS 10.7 and later

  • Uses Python 2.x readline.c from release27-maint branch (r87358)

  • Uses Python 3.x readline.c from release32-maint branch (r88446)

6.2.0 (2011-06-02)

  • #5: Removed ‘-arch ppc’ on Mac OS 10.6, as Snow Leopard supports Intel only

  • Updated to build against readline 6.2 (patch-level 1)

6.1.0 (2010-09-20)

  • Changed version number to reflect readline version instead of Python version

  • #4: Updated to build against readline 6.1 (patch-level 2)

  • #2: Python 3 support

  • Uses Python 2.x readline.c from release27-maint branch (r83672)

  • Uses Python 3.x readline.c from r32a2 tag (r84541)

  • Source code moved to GitHub

  • Additional maintainer: Sridhar Ratnakumar

2.6.4 (2009-11-26)

  • Added -fPIC to compiler flags to fix linking error on 64-bit Ubuntu

  • Enabled all readline functionality specified in pyconfig.h macros

  • Uses readline.c from Python svn trunk (r75725), which followed 2.6.4 release

  • Patched readline.c to replace Py_XDECREF calls with the safer Py_CLEAR

  • Fixed compilation error on Mac OS 10.4 with XCode older than version 2.4

2.6.1 (2009-11-18)

  • Updated package to work with Mac OS 10.6 (Snow Leopard), which ships with Python 2.6.1

  • Uses readline.c from Python 2.6.1 release

  • Backported “spurious trailing space” bugfix from Python svn trunk (see e.g. https://bugs.launchpad.net/python/+bug/470824 for details on bug)

  • Updated to build against readline 6.0 (patch-level 4)

  • Now builds successfully on Linux (removed Mac-specific flags in this case), and still supports Mac OS 10.4 and 10.5

2.5.1 (2008-05-28)

  • Updated package to work with Mac OS 10.5 (Leopard), which ships with Python 2.5.1

  • Uses readline.c from Python 2.5.1 release

  • Updated to build against readline 5.2 (patch-level 12)

  • New maintainer: Ludwig Schwardt

2.4.2 (2005-12-26)

  • Original package by Bob Ippolito, supporting Python 2.3 / 2.4 on Mac OS 10.3 (Panther) and 10.4 (Tiger)

  • Builds against readline 5.1

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

gnureadline-8.0.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distributions

gnureadline-8.0.0-cp38-cp38-macosx_10_6_intel.whl (153.8 kB view details)

Uploaded CPython 3.8 macOS 10.6+ intel

gnureadline-8.0.0-cp37-cp37m-manylinux1_x86_64.whl (283.9 kB view details)

Uploaded CPython 3.7m

gnureadline-8.0.0-cp37-cp37m-macosx_10_6_intel.whl (153.7 kB view details)

Uploaded CPython 3.7m macOS 10.6+ intel

gnureadline-8.0.0-cp36-cp36m-manylinux1_x86_64.whl (283.8 kB view details)

Uploaded CPython 3.6m

gnureadline-8.0.0-cp36-cp36m-macosx_10_6_intel.whl (153.5 kB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

gnureadline-8.0.0-cp35-cp35m-manylinux1_x86_64.whl (283.8 kB view details)

Uploaded CPython 3.5m

gnureadline-8.0.0-cp35-cp35m-macosx_10_6_intel.whl (153.6 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

gnureadline-8.0.0-cp27-cp27mu-manylinux1_x86_64.whl (282.1 kB view details)

Uploaded CPython 2.7mu

gnureadline-8.0.0-cp27-cp27mu-manylinux1_i686.whl (255.4 kB view details)

Uploaded CPython 2.7mu

gnureadline-8.0.0-cp27-cp27m-macosx_10_6_intel.whl (152.0 kB view details)

Uploaded CPython 2.7m macOS 10.6+ intel

gnureadline-8.0.0-cp26-cp26m-macosx_10_6_intel.whl (143.9 kB view details)

Uploaded CPython 2.6m macOS 10.6+ intel

File details

Details for the file gnureadline-8.0.0.tar.gz.

File metadata

  • Download URL: gnureadline-8.0.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0.tar.gz
Algorithm Hash digest
SHA256 61eef72ed02dad415ede49752e972a1d2bd8c35c1e4464565d7effd806c99476
MD5 47951eb3fc606de8319bb5ef898e63cf
BLAKE2b-256 b2e90f3c62faa8e471541d77068f440b4f5df8f396a3760fccf1b88697e282a8

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp38-cp38-macosx_10_6_intel.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp38-cp38-macosx_10_6_intel.whl
  • Upload date:
  • Size: 153.8 kB
  • Tags: CPython 3.8, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0-cp38-cp38-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 650986355bfdbe767fd7e9ce4df20ac4993f8c3b60f0829b3c1f951ce31be846
MD5 c90e10bee71fdcef5cd052643b15d573
BLAKE2b-256 4fe9161c53c3551cb84fea222b003124a79b8782c04674e10be2c411b23e86f0

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 283.9 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for gnureadline-8.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 15518acd534a84d8cd3b2431aeca85132c4892600bf3a64edd76ed265909476c
MD5 c25d94d30ced6f6b899023d4c7dd409b
BLAKE2b-256 2b3660b53a1793af9a60539b5ee6fed4f3702280bd5a88ab41600a51510002a1

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp37-cp37m-macosx_10_6_intel.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp37-cp37m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 153.7 kB
  • Tags: CPython 3.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 88c1adf00fa8b2124751d7a6a4f8701cf8677d5caccdb16f6a6b24b3ae4f97c0
MD5 2d805ee64fc1e1ef1e7c3a6901caa176
BLAKE2b-256 049a5e1b7f0d133c63dcf63e22b44af8b21b0dc7f5057b21af285f128616fee7

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 283.8 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for gnureadline-8.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e50ae6f49adfc2c89b995a75a0ce2449e553dbd943a4cd1a2d959caccc20247c
MD5 9ec40f1004547c55d6cd08fef846e17a
BLAKE2b-256 4cc764612d5cc3fd69497a4296a07143c1d19f4f5ffb4bc5cef5019b07fecec7

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 153.5 kB
  • Tags: CPython 3.6m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 5fe0b973372a6deca9b448178acf8117bc80f0c5113facef0be16712cb98feea
MD5 357b126f1c1d37c3a58cbd9ec59ec926
BLAKE2b-256 a943fb23b69547df3c4f1708b480c4bf4de28300988f36d1932871b5a393c547

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 283.8 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for gnureadline-8.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fe9b42d92dcd83071c82a5dbd33e36a287bb021d2e29f65abfe3192bf13a360d
MD5 2dead52d15ce2e18752fcf7f80699e43
BLAKE2b-256 cad8cdc62b94737d5ceec173bf122c8fa6d0ed9d2372ec991630e01711eb4b30

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 153.6 kB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 fd7ddef98546f1a97eea2ba2120faff4cb7fd52d43f4a16954b5d5531a23eb3e
MD5 87574c6b71a8124aec43c4a9067bf56d
BLAKE2b-256 3a21a4e27dee2fb3709a217d86906bf0fa199a13673a27212759a10e4a261d03

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 282.1 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for gnureadline-8.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 69c9291b6a7bcf768202b78ed1684b515181e20a3cb680b0265da0d6fdc0f697
MD5 1d94948d3f9936bdcac96dea6c3afc66
BLAKE2b-256 e3bf06ba84df6ed76903d7ba25440337c9c41ca4147fc9bc310474cd4d1d8fef

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp27-cp27mu-manylinux1_i686.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 255.4 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for gnureadline-8.0.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 59f6265f24631da28e39054cdd3a52cf02422aa2b955b8d8358b99d4425c3a26
MD5 ca092b3bb4d91159dd28e309ea9b4504
BLAKE2b-256 49b010382a08420cd085eaf24508e3ca6df11e5c849a056a1c4cc4870329c5ba

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp27-cp27m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 152.0 kB
  • Tags: CPython 2.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 8c244130b6e31669f76213ddb249c8673b8573214e80829667f17e18abe27487
MD5 f0dbd7691c26102ee95a79b4ee91f5bc
BLAKE2b-256 97ec2a6acda78022ced5465dfd7524e10646bbc9a60eb99937292688a084ab8c

See more details on using hashes here.

File details

Details for the file gnureadline-8.0.0-cp26-cp26m-macosx_10_6_intel.whl.

File metadata

  • Download URL: gnureadline-8.0.0-cp26-cp26m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 143.9 kB
  • Tags: CPython 2.6m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gnureadline-8.0.0-cp26-cp26m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 59369b0eb7210bdb2acf2940c15a6a9d35c70cde9b6d6c5b5c14b0bfd4fd258a
MD5 20ad63a342b1bd0dd0fdfe356bad4c47
BLAKE2b-256 7890b1c11fae292cc7abdbb9b6009c1b86637c67b2a33fc2506c5428398a159e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page