Inquirer3 is a Python library providing a collection of common interactive command-line user interfaces, closely mirroring the functionality of Inquirer.js. It is a community-driven fork of the original `python-inquirer` project, aiming for more responsive development and maintenance. The library simplifies the process of asking end-user questions, parsing and validating answers, and managing hierarchical prompts in terminal applications. The current version is 0.6.1, and it maintains an active release cadence with regular updates.
pip install inquirer3Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a series of interactive questions using `inquirer3.Text` and `inquirer3.List` types, including input validation. The `inquirer3.prompt()` function collects user input and returns answers as a dictionary.
Ensure `pip install editor` is run. If upgrading from <0.6.0 and encountering issues with `Editor` questions, verify `python-editor` is uninstalled and `editor` is installed.
For Windows users, be aware of potential rendering inconsistencies. Report issues to the GitHub repository to help improve support. Consider using WSL2 for a more consistent UNIX-like environment.
Always use `pip install inquirer3` and `import inquirer3` (or `from inquirer3 import ...`). Avoid mixing code examples or dependencies from other `inquirer` forks.
Activate your virtual environment (if using one) and run `pip install inquirer3`. If using an IDE, ensure it's configured to use the correct Python interpreter where `inquirer3` is installed.
For `inquirer3 >= 0.6.0`, install `pip install editor`. For `inquirer3 < 0.6.0`, install `pip install python-editor`. Also, ensure your system has a text editor (e.g., `vim`, `nano`) or set the `EDITOR` or `VISUAL` environment variables. [cite: 1, v0.6.0 release notes]
Ensure that `inquirer3.prompt` is called with a list of instantiated `inquirer3.Question` objects, like `[inquirer3.Text('name', message='...'), inquirer3.List('choice', choices=['A', 'B'])]`. Do not use dictionary representations for questions.