or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/questionary@2.1.x
tile.json

tessl/pypi-questionary

tessl install tessl/pypi-questionary@2.1.0

Python 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%

task.mdevals/scenario-3/

Interactive Configuration Tool

A command-line tool that guides users through a system configuration process with interactive confirmation prompts.

Capabilities

User Confirmation

The tool prompts the user with yes/no questions to configure various system settings. It should handle user responses appropriately and proceed based on their choices.

  • When asked "Do you want to enable automatic updates?", if the user confirms, the system stores True, otherwise False @test
  • When asked "Would you like to create a backup?", the default answer is Yes (user can press Enter to accept) @test
  • When asked "Delete temporary files?", the default answer is No (user can press Enter to accept) @test
  • The tool collects responses for multiple configuration questions and returns them as a dictionary @test

Implementation

@generates

API

def configure_system():
    """
    Runs an interactive configuration process with yes/no prompts.

    Asks the user three questions:
    1. "Do you want to enable automatic updates?" (no default)
    2. "Would you like to create a backup?" (default: Yes)
    3. "Delete temporary files?" (default: No)

    Returns:
        dict: A dictionary with keys 'auto_updates', 'create_backup',
              and 'delete_temp_files', each mapped to boolean values.
    """

Dependencies { .dependencies }

questionary { .dependency }

Provides interactive command-line prompts for user confirmation.