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-1/

{
  "context": "This evaluation assesses how effectively an engineer uses the comtypes package's event handling capabilities to implement a COM event monitoring system. The focus is specifically on the correct usage of comtypes.client functions for connecting to events, discovering events, and processing messages.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "GetEvents usage",
      "description": "Uses comtypes.client.GetEvents() to connect event handlers to COM objects in the connect_events method",
      "max_score": 35
    },
    {
      "name": "Event sink implementation",
      "description": "Implements event handler as a Python class or object with methods matching event names, compatible with GetEvents()",
      "max_score": 20
    },
    {
      "name": "ShowEvents usage",
      "description": "Uses comtypes.client.ShowEvents() to display available events from a COM object in the list_events method",
      "max_score": 20
    },
    {
      "name": "PumpEvents usage",
      "description": "Uses comtypes.client.PumpEvents() to process Windows messages for event delivery in the process_messages method",
      "max_score": 20
    },
    {
      "name": "Timeout handling",
      "description": "Correctly passes the timeout parameter to PumpEvents() to control message processing duration",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-comtypes

tile.json