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 generates Python wrapper modules from COM type libraries and provides information about the generated wrappers.
@generates
def generate_wrapper(typelib_path: str):
"""
Generate or retrieve a Python wrapper module from a COM type library.
Args:
typelib_path: Path to a type library file (.tlb, .dll, or .exe)
Returns:
The generated/cached Python module object containing wrapper classes
Raises:
Exception: If the type library cannot be loaded or processed
"""
pass
def get_interfaces(wrapper_module) -> list[str]:
"""
Extract all interface names from a generated wrapper module.
Args:
wrapper_module: A Python module object generated from a type library
Returns:
List of interface names (as strings) defined in the module,
sorted alphabetically
"""
passProvides COM interoperability and type library integration support.
@satisfied-by