An unofficial Google Translate API for Python providing free text translation and language detection capabilities
100
Pending
Does it follow best practices?
Impact
100%
1.01xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10