tessl install tessl/pypi-comtypes@1.4.0Pure Python COM package for Windows COM automation and interoperability
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
89%
{
"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
}
]
}