CodeBrix.Python.MitLicenseForever 1.0.175.84

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeBrix.Python.MitLicenseForever" Version="1.0.175.84" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.Python.MitLicenseForever" Version="1.0.175.84" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.Python.MitLicenseForever" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeBrix.Python.MitLicenseForever --version 1.0.175.84
                    
#r "nuget: CodeBrix.Python.MitLicenseForever, 1.0.175.84"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeBrix.Python.MitLicenseForever@1.0.175.84
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeBrix.Python.MitLicenseForever&version=1.0.175.84
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.Python.MitLicenseForever&version=1.0.175.84
                    
Install as a Cake Tool

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 clr module (load .NET assemblies, call .NET APIs from Python).
  • The complete public API surface of pythonnet 3.1.0, under the CodeBrix.Python namespace.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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