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

{
  "context": "This criteria evaluates the engineer's ability to use pip's custom installation location features, specifically the --target and --user options. The focus is on whether the implementation correctly invokes pip with these flags to install packages to specified directories or the user's local site-packages.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses --target flag",
      "description": "The install_to_directory() function correctly uses pip's --target option to install packages to the specified directory",
      "max_score": 30
    },
    {
      "name": "Uses --user flag",
      "description": "The install_to_user() function correctly uses pip's --user option to install packages to the user's local site-packages directory",
      "max_score": 30
    },
    {
      "name": "Subprocess invocation",
      "description": "Uses subprocess module or similar to invoke pip as a command-line tool (e.g., subprocess.run(['pip', 'install', ...]) or similar approach)",
      "max_score": 20
    },
    {
      "name": "Correct return values",
      "description": "Functions return boolean values indicating success/failure based on pip's exit code or installation outcome",
      "max_score": 10
    },
    {
      "name": "Proper error handling",
      "description": "Handles potential errors from pip execution (e.g., package not found, network issues) and returns False on failure",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pip

tile.json