gnureadline
The standard Python readline extension statically linked against the GNU readline library.
Decision gist · record as of 2026-08-14
Yes, but with conditions. Install if you are on macOS or a POSIX system where Python's readline is actually libedit and you need GNU Readline's full feature set. The GPLv3 copyleft license is a blocker for proprietary software. Medium install friction (compiled wheels) is acceptable for most developers. No known vulnerabilities. Maintenance is aging but stable; the package does one thing well and rarely needs updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pre-built wheel for your Python version (3.10–3.13) and architecture (x86_64 or aarch64); no source distribution available for other versions.
- Medium install friction due to compiled wheels for specific Python versions and architectures (cp310–cp313, x86_64 and aarch64).
- Last release 220 days ago; repository active and maintained but aging status suggests infrequent updates.
License · maintenance · safety
GPL-3.0-or-later (copyleft) — GPL-3.0-or-later copyleft license means any code linking this package must comply with GPLv3 terms. Acceptable for open-source projects and internal use, but problematic for proprietary software distribution.
last release 2026-01-06 (220 days) · last repo commit 2026-01-06 · 85 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 362,372 downloads/mo, #7,233 on PyPI
Alternatives
Verify before relying
pip install gnureadline
# In your script or shell startup:
try:
import gnureadline as readline
except ImportError:
import readline
# Or fix the interactive shell:
python -m override_readline- Whether the package works correctly with Python 3.14 and 3.15 on all listed platforms despite classifier support claims.
- Compatibility with the new Python 3.13 interactive interpreter and whether PYTHON_BASIC_REPL=1 workaround is reliable.
What it is and what it does
gnureadline bundles the GNU Readline library and compiles it statically into a Python extension module, providing proper readline support on systems like macOS that ship with libedit instead. It solves the problem that libedit, while mostly compatible, is not fully equivalent to GNU Readline, leading to subtle differences in command-line editing behavior and history handling.
The package offers two main use patterns: direct import override (try gnureadline first, fall back to readline) for scripts that need explicit readline control, and a site-customization hook via the override_readline script to fix tab completion in the interactive Python shell itself. It has no runtime dependencies and is available as pre-built wheels for Python 3.10–3.13 on macOS and Linux.
Use it for
- Fix tab completion in the interactive Python shell on macOS when the default readline is actually libedit.
- Override readline in scripts to ensure GNU Readline behavior across platforms without conditional imports.
- Maintain consistent command history and editing experience in Python REPL across macOS and Linux systems.
- Enable proper readline functionality in virtualenvs or python-build-standalone distributions where libedit is the default.
- Restore readline behavior on Python 3.13+ if the new interactive interpreter's reimplementation causes unexpected differences.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with conditions.
Install if you are on macOS or a POSIX system where Python's readline is actually libedit and you need GNU Readline's full feature set. The GPLv3 copyleft license is a blocker for proprietary software. Medium install friction (compiled wheels) is acceptable for most developers. No known vulnerabilities. Maintenance is aging but stable; the package does one thing well and rarely needs updates.
Install
gnureadline on PyPI
Before you install
Medium install friction due to compiled wheels for specific Python versions and architectures (cp310–cp313, x86_64 and aarch64). Last release 220 days ago; repository active and maintained but aging status suggests infrequent updates.
Requires pre-built wheel for your Python version (3.10–3.13) and architecture (x86_64 or aarch64); no source distribution available for other versions.
License in practice
GPL-3.0-or-later copyleft license means any code linking this package must comply with GPLv3 terms. Acceptable for open-source projects and internal use, but problematic for proprietary software distribution.
Quickstart
pip install gnureadline
# In your script or shell startup:
try:
import gnureadline as readline
except ImportError:
import readline
# Or fix the interactive shell:
python -m override_readline
Verify before relying
- Whether the package works correctly with Python 3.14 and 3.15 on all listed platforms despite classifier support claims.
- Compatibility with the new Python 3.13 interactive interpreter and whether PYTHON_BASIC_REPL=1 workaround is reliable.
Package facts
| License | GPL-3.0-or-later copyleft |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Aging 220 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 362,372 / month, #7,233 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: End Users/DesktopOperating System :: MacOS :: MacOS XOperating System :: POSIXProgramming Language :: CProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: gnureadline-8.3.3-cp310-cp310-macosx_10_9_x86_64.whl; gnureadline-8.3.3-cp310-cp310-macosx_11_0_arm64.whl; gnureadline-8.3.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; gnureadline-8.3.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; gnureadline-8.3.3-cp311-cp311-macosx_10_9_x86_64.whl; gnureadline-8.3.3-cp311-cp311-macosx_11_0_arm64.whl; gnureadline-8.3.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; gnureadline-8.3.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; gnureadline-8.3.3-cp312-cp312-macosx_10_13_x86_64.whl; gnureadline-8.3.3-cp312-cp312-macosx_11_0_arm64.whl; gnureadline-8.3.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; gnureadline-8.3.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; gnureadline-8.3.3-cp313-cp313-macosx_10_13_x86_64.whl; gnureadline-8.3.3-cp313-cp313-macosx_11_0_arm64.whl; gnureadline-8.3.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; gnureadline-8.3.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; gnureadline-8.3.3-cp313-cp313t-macosx_10_13_x86_64.whl; gnureadline-8.3.3-cp313-cp313t-macosx_11_0_arm64.whl; gnureadline-8.3.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; gnureadline-8.3.3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “libedit replacement”
- gnureadlineProvides GNU Readline library support for Python interactive shells…
- readlineProvides GNU readline library support for Python on platforms like…
- zope.hookablezope.hookable provides a mechanism to create callable objects that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also readline · pyreadline3 · tabcompleter · pyreadline · pyrepl · fancycompleter · prompt_toolkit · ptpython · urwid-readline · ipython