Python Bidi layout wrapping the Rust crate unicode-bidi
Overall
score
93%
{
"context": "This criteria evaluates how well the engineer uses the python-bidi package's multi-encoding support capability to process bidirectional text in different character encodings while maintaining proper input/output type correspondence.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses get_display()",
"description": "Solution imports and calls the get_display() function from the bidi package to process bidirectional text",
"max_score": 30
},
{
"name": "Bytes input handling",
"description": "Solution correctly passes bytes (not strings) as the first parameter to get_display() for proper encoding handling",
"max_score": 20
},
{
"name": "Encoding parameter usage",
"description": "Solution uses the encoding parameter of get_display() to specify the character encoding (e.g., encoding='cp1255')",
"max_score": 25
},
{
"name": "Bytes output preservation",
"description": "Solution ensures get_display() returns bytes in the same encoding as the input, leveraging the package's automatic type matching behavior",
"max_score": 20
},
{
"name": "Multiple encodings support",
"description": "Solution handles all required encodings (UTF-8, CP1255, ISO-8859-8) using get_display() with appropriate encoding parameters",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-python-bididocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10