CodeBrix.Python.MitLicenseForever
1.0.175.84
See the version list below for details.
dotnet add package CodeBrix.Python.MitLicenseForever --version 1.0.175.84
NuGet\Install-Package CodeBrix.Python.MitLicenseForever -Version 1.0.175.84
<PackageReference Include="CodeBrix.Python.MitLicenseForever" Version="1.0.175.84" />
<PackageVersion Include="CodeBrix.Python.MitLicenseForever" Version="1.0.175.84" />
<PackageReference Include="CodeBrix.Python.MitLicenseForever" />
paket add CodeBrix.Python.MitLicenseForever --version 1.0.175.84
#r "nuget: CodeBrix.Python.MitLicenseForever, 1.0.175.84"
#:package CodeBrix.Python.MitLicenseForever@1.0.175.84
#addin nuget:?package=CodeBrix.Python.MitLicenseForever&version=1.0.175.84
#tool nuget:?package=CodeBrix.Python.MitLicenseForever&version=1.0.175.84
CodeBrix.Python
A cross-platform Python ↔ .NET language-interoperability library for .NET 10 and later. CodeBrix.Python is a faithful port of Python.NET (pythonnet) 3.1.0, re-namespaced to CodeBrix.Python.* and retargeted to run exclusively on modern .NET. It lets you embed and drive a CPython interpreter from C#, marshal objects across the Python/CLR boundary, and (from the Python side, via the embedded clr module) load and use .NET assemblies.
CodeBrix.Python is provided as a .NET 10 library and associated CodeBrix.Python.MitLicenseForever NuGet package.
CodeBrix.Python supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.
CodeBrix.Python requires a CPython runtime (libpython) to be available at run time. It supports the same CPython versions as pythonnet 3.1.0 (CPython 3.10 through 3.14).
CodeBrix.Python supports:
- Embedding CPython in a .NET application and executing Python code from C#.
- Importing Python modules and calling Python functions, classes, and objects from .NET.
- Marshalling values and objects between the CPython and CLR type systems.
- Hosting the CLR from Python through the embedded
clrmodule (load .NET assemblies, call .NET APIs from Python). - The complete public API surface of pythonnet 3.1.0, under the
CodeBrix.Pythonnamespace.
Sample Code
Run Python from .NET
using CodeBrix.Python;
PythonEngine.Initialize();
using (Py.GIL())
{
dynamic np = Py.Import("sys");
Console.WriteLine(np.version);
}
PythonEngine.Shutdown();
License
The project is licensed under the MIT License. see: https://en.wikipedia.org/wiki/MIT_License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.254.1411 | 52 | 9/11/2026 |
| 1.0.242.1131 | 103 | 8/30/2026 |
| 1.0.175.84 | 148 | 6/24/2026 |
| 1.0.174.339 | 125 | 6/23/2026 |