A simple library for creating beautiful interactive prompts in the terminal. Current version is 5.4.2 (released April 2024). It supports various prompt types like text, list, checkbox, confirm, and path. The library is in active development with a focus on minimal dependencies and ease of use.
pip install surveyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a single text prompt and prints the answer.
Change 'from survey.prompts import ...' to 'from survey import ...'. Replace 'survey.runners.run(...)' with 'run(...)' after 'from survey import run'.
Replace 'answers.my_key' with 'answers[question.key]'.
Use 'run(prompt1, prompt2)' or 'run(*[p1, p2])' instead of 'run([p1, p2])'.
Import from top-level 'survey' instead.
Use 'from survey import Text' instead of 'from survey.prompts import Text'.
Call 'run(*prompts)' or 'run(prompt1, prompt2)'.
Use 'answers[question.key]' instead of 'answers.my_prompt'.
No dependency data recorded yet.