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 evaluation assesses how well the engineer uses the googletrans package to implement a translation system. The focus is on proper usage of the Translator class, translate() method, async context management, and correct handling of translation results.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Translator instantiation",
"description": "Creates an instance of the googletrans.Translator class for performing translations",
"max_score": 15
},
{
"name": "Async context manager",
"description": "Uses 'async with Translator()' pattern for proper resource management and automatic cleanup of HTTP connections",
"max_score": 20
},
{
"name": "translate() method usage",
"description": "Calls the translate() method with appropriate parameters (text and dest for target language)",
"max_score": 25
},
{
"name": "Result object handling",
"description": "Correctly accesses properties of the Translated object returned by translate(), specifically the 'text' property for translated text",
"max_score": 15
},
{
"name": "Source language extraction",
"description": "Extracts the detected source language from the Translated object's 'src' property",
"max_score": 10
},
{
"name": "Async/await pattern",
"description": "Properly uses async/await syntax when calling the translate() method which is an async coroutine",
"max_score": 15
}
]
}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