CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-questionary

Python library to build pretty command line user prompts with interactive forms and validation

Overall
score

96%

Overview
Eval results
Files

task.mdevals/scenario-10/

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.

Install with Tessl CLI

npx tessl i tessl/pypi-questionary

tile.json