I'm proud to finally release the first new major version of Python.NET in 7 years.
This is the culmination of over 2 years of work from many contributors to modernise the code base and support modern .NET and Python versions.
- Support for Python 3.9 and 3.10 - Support for .NET 6 - Codec system to control conversions between .NET and Python objects - Single assembly for all Python versions and operation systems (and thus also just a single wheel) - Significantly simplified the build system, only requires a modern .NET SDK to build the Python package
The new package is available from PyPI and Nuget, respectively. Updated documentation is available here:
In particular, there is an updated Getting Started section that documents using .NET 6 (coreclr) from Python:
While we tried to keep this release as backwards-compatible as possible, there are still some breaking changes. The changelog is available here:
Best Regards Benedikt