An unofficial Google Translate API for Python providing free text translation and language detection capabilities
Overall
score
100%
Evaluation — 100%
↑ 1.01xAgent success when using this tile
{
"context": "This criteria evaluates how well the engineer uses googletrans's async context manager support to properly manage HTTP client resources during translation operations. The focus is on correct usage of the Translator class with async context managers.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Translator instantiation",
"description": "Creates an instance of the Translator class from googletrans",
"max_score": 15
},
{
"name": "Async context manager",
"description": "Uses 'async with' statement with Translator to ensure proper resource management",
"max_score": 40
},
{
"name": "Translate method call",
"description": "Calls the translate() method on the Translator instance with await",
"max_score": 20
},
{
"name": "Parameter handling",
"description": "Correctly passes the text, src (source language), and dest (destination language) parameters to translate()",
"max_score": 15
},
{
"name": "Result extraction",
"description": "Accesses the .text attribute from the Translated result object to extract the translated text string",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-googletrans@4.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10