Fancy Completer (fancycompleter) is a Python module that enhances the interactive Python prompt with colorful, context-aware TAB completion, extending the functionality of the standard library's `rlcompleter`. It highlights different types of completions (strings, functions, numbers, etc.) with distinct colors, improving readability and user experience. The current version is 0.11.1 and it appears to be actively maintained with recent updates and discussions around its integration into CPython.
pip install fancycompleterVerified import paths — ran on the pinned version, not inferred.
The primary way to use fancycompleter is by calling `fancycompleter.interact()` to launch an enhanced interactive console. For automatic activation upon Python startup, use the `python -m fancycompleter install` command, which configures the `PYTHONSTARTUP` environment variable.
Ensure `fancycompleter.interact()` is the final statement in your `PYTHONSTARTUP` script.
Ensure `pyrepl` is installed (usually as a dependency). If issues persist, refer to the documentation for details on readline patches or alternative setups. Python 3.13+ users should have colors by default.
Be aware of this behavioral difference if migrating from `rlcompleter`. You will need to manually type the opening parenthesis after completing callable names.
Ensure the package is installed using pip: `pip install fancycompleter`
Install the 'tabcompleter' package, which is a maintained fork of 'fancycompleter' that addresses this issue by using 'pyreadline3': `pip install tabcompleter` (and then use `import tabcompleter; tabcompleter.interact()`).
This often points to issues with readline or pyrepl setup. Ensure 'pyrepl' is installed, as 'fancycompleter' prefers it for better functionality. If issues persist on macOS, it may require a specific patched readline or a compatible environment.
Ensure you are using a version of 'fancycompleter' and its dependencies compatible with your Python version. If direct installation fails, consider using 'tabcompleter' (a community-maintained fork) which might have updated dependencies.