tessl install tessl/pypi-w3lib@2.3.0Library of web-related functions for HTML manipulation, HTTP processing, URL handling, and encoding detection
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.91x
Baseline
Agent success rate without this tile
92%
{
"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
}
]
}