CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-googletrans

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

100

1.01x
Quality

Pending

Does it follow best practices?

Impact

100%

1.01x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.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
    }
  ]
}

tile.json