CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-comtypes

Pure Python COM package for Windows COM automation and interoperability

88

0.98x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses comtypes package functionality for type library integration and wrapper generation. The focus is on proper use of comtypes.client.GetModule for generating Python wrappers from COM type libraries and appropriate inspection techniques for the generated modules.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses GetModule",
      "description": "Uses comtypes.client.GetModule() to generate or retrieve Python wrapper modules from type library paths",
      "max_score": 40
    },
    {
      "name": "Handles exceptions",
      "description": "Properly handles and propagates exceptions when type library loading fails, allowing comtypes errors to bubble up or catching and re-raising them appropriately",
      "max_score": 15
    },
    {
      "name": "Returns module object",
      "description": "The generate_wrapper function correctly returns the Python module object produced by GetModule",
      "max_score": 15
    },
    {
      "name": "Inspects module attributes",
      "description": "Uses appropriate Python introspection (dir(), getattr(), inspect module, or __dict__) to discover interfaces in the generated wrapper module",
      "max_score": 20
    },
    {
      "name": "Filters interface types",
      "description": "Correctly identifies and filters for COM interface classes (typically by checking for inheritance from comtypes IUnknown or similar base classes) rather than including all module attributes",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-comtypes

tile.json