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

{
  "context": "This evaluation assesses how well the engineer uses the w3lib package to implement BOM detection functionality. The focus is on proper usage of w3lib's encoding detection capabilities, specifically the read_bom function, rather than implementing custom BOM detection logic.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses read_bom",
      "description": "Implementation imports and uses w3lib.encoding.read_bom function as the primary mechanism for BOM detection",
      "max_score": 40
    },
    {
      "name": "Correct function integration",
      "description": "The detect_bom function correctly calls read_bom with the binary data parameter and returns its result directly or with minimal transformation",
      "max_score": 25
    },
    {
      "name": "Proper return format",
      "description": "Function returns a tuple of (encoding_name or None, bom_bytes) matching the expected API signature and read_bom's output format",
      "max_score": 20
    },
    {
      "name": "No custom BOM logic",
      "description": "Implementation does not contain manual BOM detection logic (byte comparison, hardcoded BOM sequences, or custom parsing) and relies on w3lib functionality",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-w3lib

tile.json