Developers that have leveraged our OPC Data Client toolkit for their custom OPC client development needs know that we’ve historically supported Python as a COM development language, but that had always come with limitations and a desire from our user base for a more modern option.
In the latest V2023.2 release, OPC Data Client now adds support for Python.NET, while also announcing the deprecation of the older COM approach. The newer Python.NET option offers many advantages including, but not limited to:
- Modern, maintained Python.NET package (pythonnet), instead of the older pypiwin32 package
- Added performance and reliability that comes from using the OPC Data Client .NET API over the COM API
- Access to .NET features, such as generics, methods overloads, and callbacks
- Easier coding
With the added support for Python.NET, we have also added more than 270 Python.NET examples to make it as easy as possible for our users to learn how this works within our product. PyCharm is now listed as one of the primary development environments.
Now that we have a basic understanding of the advantages that Python.NET has over its predecessor, let’s see it in action!