Conclusion
In this chapter we took a whirlwind tour of COM. We covered the
important COM concepts and how they relate to Python and the Python
COM package. We discussed the differences between COM interfaces and
COM automation objects that expose an object model using the
IDispatch interface.
The pythoncom module and the
win32com package were introduced, and we discussed
how to use COM objects from Python and how to use native COM
interfaces from Python.
Implementing COM objects using Python was discussed in detail. We covered some simple examples and covered some advanced topics, such as wrapping and unwrapping your COM objects, PythonCOM policies, and how to debug your COM servers.
Finally, we showed you how you can distribute your Python COM objects across various machines on your network using DCOM.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access