Python.NET
Python.NET (pythonnet) is a package that gives Python programmersnearly seamless integration with .NET Framework, .NET Core and Monoruntime on Windows, Linux and macOS. Python.NETprovides a powerful application scripting tool for .NET developers.Using this package you can script .NET applications or build entireapplications in Python, using .NET services and components written inany language that targets the CLR (C#, VB.NET, F#, C++/CLI).
Note that this package doesnot implement Python as a first-class CLRlanguage - it does not produce managed code (IL) from Python code. Rather,it is an integration of the CPython engine with a .NET runtime.This approach allows one to use CLR services and continue to use existingPython code and C-API extensions while maintaining native executionspeeds for Python code. If you are interested in a pure managed-codeimplementation of the Python language, you should check out theIronPython project, which is in active development.
Python.NET is currently compatible and tested with Python releases3.7 - 3.13.
To subscribe to thePython.NET mailing list or read theonline archives of the list, see themailing list informationpage. Use thePython.NET issue tracker to report issues.
- This page provides a detailed overview of Python.NET,as well as some basic usage examples. Many other examples can befound in the demos and unit tests for the package.
- Checkout thePython.NET code from github.
- Download releases
Installation
Python.NET is available as a source release onGitHub and as asingle binary wheel distribution for all supported versions of Python and from thePython Package Index. ANuget package is providedto embed Python into .NET.
Documentation
Documentation for Python.NET is available here:
Documentation for the lower-levelclr-loader library is available here:Documentation forclr-loader
License
Python.NET is released under the open source MIT License.A copy of the license is included in the distribution,or you can find a copy of thelicense online.
.NET Foundation
This project is supported by the.NET Foundation.