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 the engineer's ability to use the googletrans package to configure and compare translations across different service endpoints. The focus is on understanding service URL configuration, which directly relates to the token generation mechanism used by different Google Translate backends.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Translator initialization",
"description": "Uses the Translator class constructor with the service_urls parameter to configure different backend endpoints",
"max_score": 25
},
{
"name": "Service URL handling",
"description": "Correctly passes different service URLs (e.g., 'translate.google.com', 'translate.googleapis.com') to create translator instances with distinct endpoint configurations",
"max_score": 20
},
{
"name": "Async context manager",
"description": "Uses 'async with Translator() as translator:' pattern for proper resource management and connection cleanup",
"max_score": 20
},
{
"name": "Translation execution",
"description": "Calls the translate() method with appropriate parameters (text and dest language) and correctly awaits the async result",
"max_score": 15
},
{
"name": "Result extraction",
"description": "Accesses the text attribute from the Translated result object to extract the translated text",
"max_score": 10
},
{
"name": "Multiple configurations",
"description": "Successfully creates and uses multiple translator instances with different service URLs, properly managing each instance independently",
"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