CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pip

The PyPA recommended tool for installing Python packages.

91

1.07x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses pip's uninstallation API to implement a safe package uninstaller with automatic rollback capability. The focus is on proper usage of pip's programmatic interface for uninstalling packages and handling rollback scenarios.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses pip's API",
      "description": "Uses pip's programmatic API (pip._internal or subprocess with pip command) to perform uninstallation rather than implementing package removal manually",
      "max_score": 20
    },
    {
      "name": "Implements uninstall",
      "description": "Successfully calls pip uninstall functionality for each package (e.g., using pip._internal.commands.uninstall or subprocess.run with 'pip uninstall')",
      "max_score": 20
    },
    {
      "name": "Tracks uninstalled packages",
      "description": "Maintains a list or record of successfully uninstalled packages to enable rollback",
      "max_score": 15
    },
    {
      "name": "Detects failures",
      "description": "Properly detects when a package uninstallation fails (through exception handling or return code checking)",
      "max_score": 15
    },
    {
      "name": "Implements rollback",
      "description": "Uses pip install to reinstall previously uninstalled packages when a failure occurs",
      "max_score": 20
    },
    {
      "name": "Handles command-line arguments",
      "description": "Accepts and processes package names from command-line arguments (sys.argv or argparse)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pip

tile.json