Pure Python COM package for Windows COM automation and interoperability
88
{
"context": "This criteria evaluates how well the engineer uses comtypes package functions to create and access COM objects, specifically focusing on CreateObject, GetActiveObject, and property access capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CreateObject usage",
"description": "Uses comtypes.client.CreateObject() to create a new Shell.Application COM object with the correct ProgID string 'Shell.Application'",
"max_score": 30
},
{
"name": "GetActiveObject usage",
"description": "Uses comtypes.client.GetActiveObject() to connect to an already-running Shell.Application COM object with the correct ProgID string",
"max_score": 25
},
{
"name": "COM method invocation",
"description": "Calls the NameSpace() or BrowseForFolder() method on the shell COM object to navigate to special folders using folder IDs",
"max_score": 25
},
{
"name": "Property access",
"description": "Accesses COM object properties using attribute syntax (e.g., folder_obj.Title) to retrieve folder information",
"max_score": 15
},
{
"name": "COMError handling",
"description": "Imports and catches comtypes.COMError exceptions when COM operations fail, raising RuntimeError as specified in the API functions",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-comtypesevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10