The PyPA recommended tool for installing Python packages.
91
{
"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-pipevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10