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-9/

Software Package Installer

Build a command-line tool that helps users select software packages to install on their system.

Requirements

Your tool should prompt the user to select one or more software packages they want to install from a predefined list. The selected packages should be displayed back to the user.

Package Selection

The tool should present a multi-select prompt with the following packages:

  • Python 3.11
  • Node.js 20
  • Docker Desktop
  • PostgreSQL 15
  • Redis 7
  • Git
  • Visual Studio Code
  • Postman

User Interaction

  • Users should be able to select multiple packages
  • Users should be able to toggle selections on/off
  • After selection, display a confirmation message showing which packages were chosen

Output Format

After the user makes their selections, print:

Selected packages for installation:
- [package name 1]
- [package name 2]
...

If no packages are selected, print:

No packages selected for installation.

Implementation

@generates

Test Cases

  • When the user selects Python 3.11 and Docker Desktop, the output should list those two packages @test
  • When the user selects no packages, the output should indicate no packages were selected @test
  • When the user selects all available packages, the output should list all eight packages @test

API

def run_installer():
    """
    Runs the software package installer prompt.

    Displays a multi-select prompt for the user to choose software packages
    and prints the selected packages.
    """
    pass

Dependencies { .dependencies }

questionary { .dependency }

Provides interactive command-line prompts for user input.