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%
Build a utility that analyzes Windows COM type libraries and generates a JSON report containing metadata about the interfaces, classes, and enumerations defined within them.
Your utility should:
.tlb, .dll, or .exe) as inputtlb_report.json@generates
The main entry point should be a function that accepts a type library path and output path.
def analyze_type_library(tlb_path: str, output_path: str) -> dict:
"""
Analyze a COM type library and generate a JSON report.
Args:
tlb_path: Path to the type library file (.tlb, .dll, or .exe)
output_path: Path where the JSON report should be written
Returns:
dict: The analysis report as a dictionary
Raises:
FileNotFoundError: If the type library file does not exist
ValueError: If the file is not a valid type library
"""
passProvides COM type library parsing and analysis capabilities for Windows.