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 effectively an engineer uses googletrans's advanced proxy configuration capabilities. The criteria focus on proper initialization of the Translator class with various proxy formats, correct usage of httpx.Proxy for authentication, and appropriate proxy parameter passing.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Translator initialization",
"description": "Correctly initializes Translator class with the proxy parameter, passing proxy configurations to the Translator constructor",
"max_score": 20
},
{
"name": "String proxy format",
"description": "Uses simple string URL format for proxy parameter (e.g., proxy='http://proxy.example.com:8080') when creating Translator instances",
"max_score": 15
},
{
"name": "Dict proxy format",
"description": "Uses dictionary-based proxy configuration with scheme-specific keys (e.g., proxy={'http://': 'url', 'https://': 'url'}) when creating Translator instances",
"max_score": 15
},
{
"name": "httpx.Proxy authentication",
"description": "Uses httpx.Proxy objects with authentication credentials via the auth parameter (e.g., Proxy(url='...', auth=('username', 'password'))) when creating Translator instances",
"max_score": 20
},
{
"name": "Async context manager",
"description": "Uses async with statement for Translator context management to ensure proper resource cleanup (e.g., async with Translator(proxy=...) as translator)",
"max_score": 15
},
{
"name": "translate() method usage",
"description": "Calls the translate() method with appropriate text and dest parameters, using await for the async operation",
"max_score": 10
},
{
"name": "Proxy reconfiguration",
"description": "Creates new Translator instances with different proxy configurations to demonstrate runtime proxy switching capability",
"max_score": 5
}
]
}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