CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-python-bidi

Python Bidi layout wrapping the Rust crate unicode-bidi

Overall
score

93%

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This evaluation criteria assesses how effectively the engineer uses the python-bidi package, specifically the get_display() function, to solve bidirectional text display problems. The focus is on proper usage of the package's API and understanding of its capabilities for handling mixed-direction text.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses get_display()",
      "description": "The implementation imports and uses the get_display() function from the bidi package (or bidi.algorithm module) as the primary mechanism for converting bidirectional text to display order",
      "max_score": 40
    },
    {
      "name": "Handles str input",
      "description": "The implementation correctly passes string input directly to get_display() and returns the result, leveraging the package's built-in string handling",
      "max_score": 20
    },
    {
      "name": "Handles bytes input",
      "description": "The implementation correctly passes bytes input to get_display() with the appropriate encoding parameter, utilizing the package's encoding support",
      "max_score": 20
    },
    {
      "name": "Preserves input type",
      "description": "The implementation leverages get_display()'s automatic type preservation where str input returns str and bytes input returns bytes, without manual type conversion",
      "max_score": 10
    },
    {
      "name": "Encoding parameter usage",
      "description": "The implementation correctly passes the encoding parameter to get_display() when processing bytes, using the package's built-in encoding parameter rather than manual encoding/decoding",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-python-bidi

tile.json