DotNetPythonBridge 1.0.0-beta.2

This is a prerelease version of DotNetPythonBridge.
dotnet add package DotNetPythonBridge --version 1.0.0-beta.2
                    
NuGet\Install-Package DotNetPythonBridge -Version 1.0.0-beta.2
                    
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="DotNetPythonBridge" Version="1.0.0-beta.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetPythonBridge" Version="1.0.0-beta.2" />
                    
Directory.Packages.props
<PackageReference Include="DotNetPythonBridge" />
                    
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 DotNetPythonBridge --version 1.0.0-beta.2
                    
#r "nuget: DotNetPythonBridge, 1.0.0-beta.2"
                    
#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 DotNetPythonBridge@1.0.0-beta.2
                    
#: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=DotNetPythonBridge&version=1.0.0-beta.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DotNetPythonBridge&version=1.0.0-beta.2&prerelease
                    
Install as a Cake Tool

DotNetPythonBridge

Reliable Python integration for .NET (Conda, WSL, and service management)

DotNetPythonBridge is a .NET runtime layer designed to make it easy and reliable to launch/monitor long-running Python services, run Python processes and manage Conda/Mamba environments (including WSL) — without brittle shell scripts or manual setup.

🧠 Key Benefits

  • Cross-platform support (Windows & WSL)
  • Conda/Mamba environment discovery & management
  • Service lifecycle management (start, health check, stop)
  • Port reservation & retry logic
  • Safe shell and WSL command escaping

This library helps you embed Python workflows within your .NET apps while avoiding common pitfalls.

📦 Install

dotnet add package DotNetPythonBridge

# Or via NuGet Package Manager

Install-Package DotNetPythonBridge

🚀 Quick Example

// Start a Python service (auto port)
var service = await PythonService.Start(@"path\to\script.py");

// Use service info
Console.WriteLine($"Started on port: {service.Port}, PID: {service.Pid}");

// Stop when done
service.Stop();

📌 Licensing

This package is free for non-commercial use under the Polyform Noncommercial License 1.0.0. For commercial use, a separate commercial license is required. Visit the project repo for details: 👉 https://github.com/achhibbar/DotNetPythonBridge

Contact

For questions or issues, please open an issue on GitHub or contact us at: 👉 dotnetpythonbridge@gmail.com

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

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.0-beta.2 86 2/6/2026
1.0.0-beta.1 78 2/4/2026