--- id: inquirer version: "3.4.1" license: MIT license_treatment: permissive maintenance: aging --- # inquirer — Collection of common interactive command line user interfaces, based on Inquirer.js License: permissive · Maintenance: aging · Downloads: 4.9M/mo ## What it is and what it does Inquirer is a Python port of the JavaScript Inquirer.js library that simplifies building interactive terminal user interfaces. It handles the mechanics of asking questions, parsing answers, validating input, managing conditional/hierarchical prompts, and displaying error feedback—all without requiring you to manage raw terminal I/O. The package supports multiple question types: plain text input, multi-line editor-based answers, single-choice lists, multi-select checkboxes, and path validation, each with optional validation rules and conditional display logic. Typically used in CLI tools, setup wizards, configuration scripts, and interactive installers where you need to collect structured user input at the terminal. It depends on blessed for terminal control, editor for launching external text editors, and readchar for capturing individual keystrokes. The library is stable (Production/Stable status) and widely downloaded, though recent maintenance activity is sparse. Use it for: - Build interactive setup wizards or configuration scripts that guide users through a series of validated questions. - Create CLI tools that let users select from lists or check multiple options without manual text entry. - Collect long-form text input by opening the user's preferred editor (vim, emacs, nano) within a Python script. - Validate user input (phone numbers, file paths, email addresses) before processing in a command-line application. - Chain conditional prompts where later questions depend on earlier answers in an interactive survey or form. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Inquirer provides interactive command-line prompts for collecting user input—text, selections, checkboxes, file paths, and editor-based answers—with built-in validation and hierarchical question support. Yes, if you need interactive terminal prompts with validation. The library is stable, permissive-licensed, and has low install friction. However, maintenance is aging (last release 377 days ago), so check whether its three dependencies remain actively maintained. Windows users should test thoroughly before relying on it in production. ## Install pip install inquirer uv add inquirer poetry add inquirer ## Installing inquirer Before you install: Low friction: pure Python wheel with only three runtime dependencies (blessed, editor, readchar). Maintenance status is aging—last release was 377 days ago—but the repository remains active with recent commits and no archived status. License in practice: MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions. Quickstart: pip install inquirer import inquirer questions = [inquirer.Text('name', message="What's your name?")] answers = inquirer.prompt(questions) Requires Python 3.9.2 or later. UNIX-based platforms (macOS, Linux) are fully supported; Windows has experimental support. Verify before relying: - Whether Windows support has improved since the 'experimental' designation in the description. - Current state of the three runtime dependencies (blessed, editor, readchar) and their maintenance status. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 4.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags interactive command line prompts, cli user input collection, terminal questionnaire, command line forms, interactive terminal ui, cli input validation, terminal choice selection, cli-ux, terminal-ui, user-input [View on SkillFed](https://skillfed.io/packages/inquirer) · [View on PyPI](https://pypi.org/project/inquirer/)