Microsoft Azure Cognitive Services Search Namespace Package for Python 2/3 compatibility
64
Quality
Pending
Does it follow best practices?
Impact
64%
1.25xAverage score across 6 eval scenarios
{
"context": "Evaluates whether the solution relies on azure-cognitiveservices-search-nspkg to expose the azure.cognitiveservices.search namespace, discover search client packages through its extended __path__, and block known conflicts from legacy azure 0.x installs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Namespace import",
"description": "Imports azure.cognitiveservices.search so the nspkg's pkgutil.extend_path runs before any discovery logic.",
"max_score": 20
},
{
"name": "Uses __path__",
"description": "Discovers modules by iterating pkgutil over azure.cognitiveservices.search.__path__ rather than scanning arbitrary directories or hardcoded paths.",
"max_score": 25
},
{
"name": "Extra paths",
"description": "Temporarily extends sys.path with provided additional_paths, reuses the namespace __path__, and cleans up after discovery so contributions from new locations are seen.",
"max_score": 15
},
{
"name": "Legacy block",
"description": "Detects an installed azure distribution with a 0.x version (via importlib.metadata or pkg_resources) and raises the specified RuntimeError instructing removal before discovery proceeds.",
"max_score": 20
},
{
"name": "Service names",
"description": "Returns sorted dotted names using the azure.cognitiveservices.search prefix only for real packages reported by pkgutil (ignoring non-package entries).",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-azure-cognitiveservices-search-nspkg