CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-cognitiveservices-search-nspkg

Microsoft Azure Cognitive Services Search Namespace Package for Python 2/3 compatibility

64

1.25x

Quality

Pending

Does it follow best practices?

Impact

64%

1.25x

Average score across 6 eval scenarios

Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates how well the solution relies on azure-cognitiveservices-search-nspkg to keep the azure.cognitiveservices.search namespace usable for dynamic service loading, including honoring its non-zip-safe behavior and leveraging the namespace path for discovery and imports.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses namespace pkg",
      "description": "Imports and relies on azure-cognitiveservices-search-nspkg so the azure.cognitiveservices.search namespace path is properly extended instead of manually hard-coding paths.",
      "max_score": 25
    },
    {
      "name": "Path-based discovery",
      "description": "Discovers service subpackages by iterating over azure.cognitiveservices.search.__path__ (e.g., via pkgutil.iter_modules on that path) to produce unique, sorted service names.",
      "max_score": 25
    },
    {
      "name": "Namespace imports",
      "description": "Loads requested services through importlib or equivalent against azure.cognitiveservices.search.<service>, returning the module on success and raising ModuleNotFoundError with a clear install hint when missing.",
      "max_score": 20
    },
    {
      "name": "Zip-safety guard",
      "description": "Validates entries in azure.cognitiveservices.search.__path__ and rejects zip/egg paths with an explicit error explaining the namespace must remain unzipped because the package is not zip safe.",
      "max_score": 20
    },
    {
      "name": "Normalized paths",
      "description": "Normalizes accepted namespace directories before returning or reporting them so downstream discovery uses consistent, absolute filesystem paths.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-azure-cognitiveservices-search-nspkg

tile.json