Available Question Types in Questionary
masterQuestionary provides several question types to handle different user input scenarios. Use the following mapping to choose the right method for your use case:
- Free text input:
questionary.text() - Hidden text (passwords):
questionary.password() - File or directory paths (with autocompletion):
questionary.path() - Yes/No questions:
questionary.confirm() - Single item selection (styled list):
questionary.select() - Single item selection (unformatted list):
questionary.rawselect() - Multiple item selection:
questionary.checkbox() - Free text with autocomplete suggestions:
questionary.autocomplete() - Wait for user input:
questionary.press_any_key_to_continue()
Additionally, you can use questionary.print() to display formatted text to the terminal.