DotNetPythonBridge 1.0.0-beta.2
dotnet add package DotNetPythonBridge --version 1.0.0-beta.2
NuGet\Install-Package DotNetPythonBridge -Version 1.0.0-beta.2
<PackageReference Include="DotNetPythonBridge" Version="1.0.0-beta.2" />
<PackageVersion Include="DotNetPythonBridge" Version="1.0.0-beta.2" />
<PackageReference Include="DotNetPythonBridge" />
paket add DotNetPythonBridge --version 1.0.0-beta.2
#r "nuget: DotNetPythonBridge, 1.0.0-beta.2"
#:package DotNetPythonBridge@1.0.0-beta.2
#addin nuget:?package=DotNetPythonBridge&version=1.0.0-beta.2&prerelease
#tool nuget:?package=DotNetPythonBridge&version=1.0.0-beta.2&prerelease
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 | Versions 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. |
-
net8.0
- Microsoft.Extensions.Logging (>= 9.0.9)
- Microsoft.Extensions.Logging.Console (>= 9.0.9)
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 |