CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-googletrans

An unofficial Google Translate API for Python providing free text translation and language detection capabilities

Overall
score

100%

Evaluation100%

1.01x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "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.0

tile.json