Pure Python COM package for Windows COM automation and interoperability
88
{
"context": "This criteria evaluates how well the engineer uses comtypes' type library access APIs (ITypeLib and ITypeInfo interfaces) to implement a COM type library inspector. The focus is on proper usage of comtypes functions like LoadTypeLib, ITypeLib methods, and ITypeInfo methods.",
"type": "weighted_checklist",
"checklist": [
{
"name": "LoadTypeLib usage",
"description": "Uses comtypes.typeinfo.LoadTypeLib() or comtypes.typeinfo.LoadTypeLibEx() to load the type library from the file path in __init__",
"max_score": 25
},
{
"name": "ITypeLib attribute access",
"description": "Correctly accesses ITypeLib attributes/methods to retrieve library information (GetDocumentation(), GetLibAttr()) in get_typelib_info() method",
"max_score": 20
},
{
"name": "Type enumeration",
"description": "Uses ITypeLib.GetTypeInfoCount() and ITypeLib.GetTypeInfo() to iterate through all types in the library for get_type_names() method",
"max_score": 20
},
{
"name": "ITypeInfo usage",
"description": "Uses ITypeInfo interface to retrieve detailed type information including GetDocumentation() and GetTypeAttr() in get_interface_info() method",
"max_score": 15
},
{
"name": "Function enumeration",
"description": "Uses ITypeInfo.GetFuncDesc() or similar methods to enumerate interface methods/functions for the get_interface_info() method",
"max_score": 10
},
{
"name": "Error handling",
"description": "Properly handles COM errors and file loading errors, converting them to appropriate Python exceptions (FileNotFoundError, OSError, ValueError)",
"max_score": 10
}
]
}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