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-2/

{
  "context": "This evaluation assesses how well the engineer uses the googletrans package to implement a translation system. The focus is on proper usage of the Translator class, translate() method, async context management, and correct handling of translation results.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Translator instantiation",
      "description": "Creates an instance of the googletrans.Translator class for performing translations",
      "max_score": 15
    },
    {
      "name": "Async context manager",
      "description": "Uses 'async with Translator()' pattern for proper resource management and automatic cleanup of HTTP connections",
      "max_score": 20
    },
    {
      "name": "translate() method usage",
      "description": "Calls the translate() method with appropriate parameters (text and dest for target language)",
      "max_score": 25
    },
    {
      "name": "Result object handling",
      "description": "Correctly accesses properties of the Translated object returned by translate(), specifically the 'text' property for translated text",
      "max_score": 15
    },
    {
      "name": "Source language extraction",
      "description": "Extracts the detected source language from the Translated object's 'src' property",
      "max_score": 10
    },
    {
      "name": "Async/await pattern",
      "description": "Properly uses async/await syntax when calling the translate() method which is an async coroutine",
      "max_score": 15
    }
  ]
}

tile.json