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 initialize and configure the googletrans Translator class with different configuration parameters. The focus is on correct usage of the Translator constructor parameters including service_urls, http2, raise_exception, and user_agent.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Translator Import",
"description": "Correctly imports the Translator class from the googletrans package (e.g., 'from googletrans import Translator').",
"max_score": 5
},
{
"name": "Production service_urls Configuration",
"description": "For the production environment, correctly passes the 'translate.googleapis.com' endpoint to the service_urls parameter as a list (e.g., service_urls=['translate.googleapis.com']).",
"max_score": 15
},
{
"name": "Production http2 Setting",
"description": "For the production environment, either explicitly sets http2=True or relies on the default value (HTTP/2 enabled).",
"max_score": 5
},
{
"name": "Production raise_exception Setting",
"description": "For the production environment, either explicitly sets raise_exception=False or relies on the default value (no exceptions raised).",
"max_score": 5
},
{
"name": "Development service_urls Configuration",
"description": "For the development environment, correctly passes 'translate.google.com' to the service_urls parameter as a list (e.g., service_urls=['translate.google.com']).",
"max_score": 10
},
{
"name": "Development raise_exception Setting",
"description": "For the development environment, explicitly sets raise_exception=True to enable exception raising.",
"max_score": 15
},
{
"name": "Development user_agent Setting",
"description": "For the development environment, correctly sets the user_agent parameter to 'DevBot/1.0' (e.g., user_agent='DevBot/1.0').",
"max_score": 15
},
{
"name": "Restricted service_urls Configuration",
"description": "For the restricted environment, correctly passes 'translate.google.co.kr' to the service_urls parameter as a list (e.g., service_urls=['translate.google.co.kr']).",
"max_score": 10
},
{
"name": "Restricted http2 Setting",
"description": "For the restricted environment, explicitly sets http2=False to disable HTTP/2.",
"max_score": 10
},
{
"name": "Restricted raise_exception Setting",
"description": "For the restricted environment, explicitly sets raise_exception=True to enable exception raising.",
"max_score": 10
}
]
}