CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-w3lib

Library of web-related functions for HTML manipulation, HTTP processing, URL handling, and encoding detection

84

0.91x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses w3lib's file path and URI conversion functions to implement the three required conversion capabilities. The focus is on correct usage of path_to_file_uri, file_uri_to_path, and any_to_uri functions from the w3lib package.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses path_to_file_uri",
      "description": "The implementation correctly uses w3lib.url.path_to_file_uri() function to convert filesystem paths to file:// URIs in the path_to_file_uri function",
      "max_score": 30
    },
    {
      "name": "Uses file_uri_to_path",
      "description": "The implementation correctly uses w3lib.url.file_uri_to_path() function to convert file:// URIs back to filesystem paths in the file_uri_to_path function",
      "max_score": 30
    },
    {
      "name": "Uses any_to_uri",
      "description": "The implementation correctly uses w3lib.url.any_to_uri() function as the core mechanism for intelligent format detection and conversion in the smart_convert function",
      "max_score": 25
    },
    {
      "name": "Proper error handling",
      "description": "The smart_convert function properly handles invalid inputs (non-file URIs like http:// URLs) by catching exceptions or validating input, as required by the specification",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-w3lib

tile.json