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

Secure CLI Configuration Tool

A command-line utility that collects sensitive configuration data from users with proper security measures for password handling.

Capabilities

Collects user credentials

  • Prompts the user to enter their username as plain text @test
  • Prompts the user to enter their password with masked input @test
  • Returns both username and password in a dictionary with keys 'username' and 'password' @test

Collects API key securely

  • Prompts the user to enter an API key with masked input @test
  • Returns the API key as a string @test

Collects database credentials

  • Prompts for database host as plain text @test
  • Prompts for database password with masked input @test
  • Returns a dictionary with 'host' and 'password' keys @test

Implementation

@generates

API

def collect_user_credentials():
    """
    Collects username and password from the user.

    Returns:
        dict: A dictionary containing 'username' and 'password' keys.
    """
    pass

def collect_api_key():
    """
    Collects an API key from the user securely.

    Returns:
        str: The API key entered by the user.
    """
    pass

def collect_database_credentials():
    """
    Collects database host and password from the user.

    Returns:
        dict: A dictionary containing 'host' and 'password' keys.
    """
    pass

Dependencies { .dependencies }

questionary { .dependency }

Provides interactive command-line prompts with secure password input capabilities.

Install with Tessl CLI

npx tessl i tessl/pypi-questionary

tile.json