tessl install tessl/pypi-googletrans@4.0.0An unofficial Google Translate API for Python providing free text translation and language detection capabilities
Agent Success
Agent success rate when using this tile
100%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
99%
{
"context": "This criteria evaluates the engineer's ability to properly configure timeout settings for the googletrans Translator using httpx's Timeout object. The focus is on correctly instantiating the Translator with appropriate timeout parameters for connection, read, and write operations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports Timeout object",
"description": "The solution imports the Timeout class from httpx (e.g., 'from httpx import Timeout')",
"max_score": 15
},
{
"name": "Imports Translator class",
"description": "The solution imports the Translator class from googletrans (e.g., 'from googletrans import Translator')",
"max_score": 10
},
{
"name": "Creates Timeout object",
"description": "The solution creates a Timeout object with the specified timeout values (connect=3.0, read=10.0, write=3.0)",
"max_score": 25
},
{
"name": "Passes timeout parameter",
"description": "The solution passes the Timeout object to the Translator constructor using the 'timeout' parameter",
"max_score": 20
},
{
"name": "Uses async context manager",
"description": "The solution uses 'async with Translator(...) as translator' pattern for proper resource management",
"max_score": 15
},
{
"name": "Calls translate method",
"description": "The solution calls the translator.translate() method with appropriate parameters (text and dest language)",
"max_score": 10
},
{
"name": "Returns translated text",
"description": "The solution correctly extracts and returns the translated text from the Translated result object (e.g., result.text)",
"max_score": 5
}
]
}