tessl install tessl/pypi-questionary@2.1.0Python library to build pretty command line user prompts with interactive forms and validation
Agent Success
Agent success rate when using this tile
96%
Improvement
Agent success rate improvement when using this tile compared to baseline
1x
Baseline
Agent success rate without this tile
96%
A command-line tool that collects user registration information with proper input validation and helpful error messages.
Create an interactive CLI tool that prompts users for registration details including username, email, and password. The tool must validate each input and provide clear, helpful error messages when validation fails.
@generates
The tool should implement a collect_registration() function that prompts for each field in sequence and returns the collected data.
def collect_registration():
"""
Collect user registration information through interactive prompts.
Prompts the user for:
- Username (alphanumeric + underscores, min 3 chars)
- Email (valid email format)
- Password (min 8 chars, with uppercase, lowercase, and digit)
Each field has custom validation with helpful error messages.
Returns:
dict: A dictionary containing 'username', 'email', and 'password' keys
with the validated user input values.
"""
passProvides interactive command-line prompts with validation support.