Ctrl + K
DocumentationLog inGet started

tessl/pypi-w3lib

tessl install tessl/pypi-w3lib@2.3.0

Library 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%

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses w3lib's basic_auth_header function to generate HTTP Basic Authentication headers. The focus is on correct usage of the function, proper encoding parameter handling, and appropriate integration into the authentication workflow.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses basic_auth_header",
      "description": "Code imports and uses w3lib.http.basic_auth_header (or from w3lib.http import basic_auth_header) to generate authentication headers rather than implementing Base64 encoding manually",
      "max_score": 30
    },
    {
      "name": "Default encoding handling",
      "description": "Correctly calls basic_auth_header with default encoding (ISO-8859-1) for the standard ASCII API, either by not specifying the encoding parameter or explicitly passing 'iso-8859-1' or 'latin-1'",
      "max_score": 20
    },
    {
      "name": "UTF-8 encoding support",
      "description": "Correctly calls basic_auth_header with encoding='utf-8' parameter for the international API to handle international characters in credentials",
      "max_score": 25
    },
    {
      "name": "Header format structure",
      "description": "Returns the authentication header in the correct dictionary format with 'Authorization' as the key and the value from basic_auth_header as the dictionary value",
      "max_score": 15
    },
    {
      "name": "Credential passing",
      "description": "Correctly passes username and password as the first two positional arguments to basic_auth_header in both functions",
      "max_score": 10
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/w3lib@2.3.x
tile.json