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

{
  "context": "This criteria evaluates how well the engineer uses pip's cache management functionality to implement a cache management tool. The focus is on proper usage of pip cache subcommands (dir, info, list, remove, purge) and correct subprocess invocation patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Cache directory retrieval",
      "description": "Uses 'pip cache dir' command to get the cache directory path. Should invoke via subprocess and capture stdout correctly.",
      "max_score": 15
    },
    {
      "name": "Cache statistics",
      "description": "Uses 'pip cache info' command to retrieve cache statistics (number of files and total size). Should parse the output to extract item count and size information.",
      "max_score": 15
    },
    {
      "name": "List cached items",
      "description": "Uses 'pip cache list' command without pattern to list all cached wheel files. Should correctly parse the output format to extract package names, filenames, and sizes.",
      "max_score": 20
    },
    {
      "name": "Pattern-based filtering",
      "description": "Uses 'pip cache list <pattern>' command with a pattern argument to filter cached items. Should pass the pattern correctly as a command argument.",
      "max_score": 15
    },
    {
      "name": "Remove cached items",
      "description": "Uses 'pip cache remove <pattern>' command to remove specific cached items matching a pattern. Should handle confirmation logic appropriately and capture removal statistics.",
      "max_score": 15
    },
    {
      "name": "Purge all cache",
      "description": "Uses 'pip cache purge' command to remove all cached items. Should implement confirmation prompts correctly and report results accurately.",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Properly handles subprocess errors and pip command failures (return codes, stderr). Should provide meaningful error messages when pip commands fail.",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pip

tile.json