CSnakes.Runtime 1.0.34

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

CSnakes - a tool for embedding Python into .NET projects

Documentation

NuGet Version

<img src="docs/res/logo.jpeg" alt="drawing" width="200"/>

CSnakes is a .NET Source Generator and Runtime that you can use to embed Python code and libraries into your .NET Solution without the need for REST, HTTP, or Microservices.

Architecture diagram of CSnakes

Features

Examples

Given the following Python file called example.py


def hello_world(name: str, age: int) -> str:
  return f"Hello {name}, you must be {age} years old!"

CSnakes will generate a static .NET class called Example with the function:

public class Example {
  public static string HelloWorld(string name, long age) {
    ...
  }
}

When called, HelloWorld() will invoke the Python function from example.py using Python's C-API and return native .NET types.

FAQ

See the FAQ for more information.

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 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on CSnakes.Runtime:

Package Downloads
Glidergun

Package Description

TransformersSharp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.34 297 5/25/2025
1.0.34-beta.196 29 5/25/2025
1.0.34-beta.195 34 5/25/2025
1.0.33 936 5/7/2025
1.0.33-beta.194 32 5/24/2025
1.0.33-beta.193 53 5/23/2025
1.0.33-beta.192 53 5/23/2025
1.0.33-beta.191 53 5/23/2025
1.0.33-beta.190 111 5/8/2025
1.0.33-beta.189 110 5/8/2025
1.0.33-beta.188 117 5/7/2025
1.0.32 586 4/29/2025
1.0.32-beta.187 117 5/7/2025
1.0.32-beta.186 107 5/6/2025
1.0.32-beta.185 109 5/5/2025
1.0.32-beta.184 113 5/5/2025
1.0.32-beta.183 106 4/30/2025
1.0.32-beta.182 109 4/30/2025
1.0.32-beta.181 106 4/30/2025
1.0.32-beta.180 120 4/29/2025
1.0.31 1,236 4/23/2025
1.0.31-beta.179 123 4/28/2025
1.0.31-beta.178 118 4/28/2025
1.0.31-beta.177 125 4/28/2025
1.0.31-beta.176 121 4/28/2025
1.0.31-beta.175 117 4/28/2025
1.0.31-beta.174 121 4/27/2025
1.0.31-beta.173 121 4/24/2025
1.0.31-beta.172 121 4/24/2025
1.0.31-beta.171 115 4/24/2025
1.0.31-beta.170 123 4/24/2025
1.0.31-beta.169 118 4/24/2025
1.0.31-beta.168 123 4/23/2025
1.0.31-beta.167 120 4/23/2025
1.0.31-beta.166 118 4/23/2025
1.0.31-beta.165 122 4/23/2025
1.0.30 2,297 3/26/2025
1.0.30-beta.164 124 4/23/2025
1.0.30-beta.163 116 4/22/2025
1.0.30-beta.162 116 4/22/2025
1.0.30-beta.161 117 4/18/2025
1.0.30-beta.160 149 4/17/2025
1.0.30-beta.159 125 4/6/2025
1.0.30-beta.158 123 4/6/2025
1.0.30-beta.157 124 4/4/2025
1.0.30-beta.156 116 4/3/2025
1.0.30-beta.155 118 4/3/2025
1.0.30-beta.154 121 4/3/2025
1.0.30-beta.153 123 4/3/2025
1.0.30-beta.152 119 3/30/2025
1.0.30-beta.151 435 3/26/2025
1.0.29 523 3/14/2025
1.0.29-beta.150 438 3/26/2025
1.0.29-beta.149 110 3/21/2025
1.0.29-beta.148 119 3/20/2025
1.0.29-beta.147 111 3/17/2025
1.0.29-beta.146 100 3/16/2025
1.0.29-beta.145 101 3/14/2025
1.0.28 224 3/12/2025
1.0.28-beta.144 99 3/14/2025
1.0.28-beta.143 125 3/12/2025
1.0.27 1,516 2/14/2025
1.0.27-beta.142 123 3/12/2025
1.0.27-beta.141 123 3/12/2025
1.0.27-beta.140 128 3/10/2025
1.0.27-beta.139 55 2/28/2025
1.0.27-beta.138 56 2/14/2025
1.0.26 2,638 1/27/2025
1.0.26-beta.137 57 2/14/2025
1.0.26-beta.136 66 2/10/2025
1.0.26-beta.135 71 1/27/2025
1.0.25 510 1/14/2025
1.0.25-beta.134 56 1/27/2025
1.0.25-beta.133 52 1/22/2025
1.0.25-beta.132 57 1/22/2025
1.0.25-beta.131 51 1/22/2025
1.0.25-beta.130 42 1/14/2025
1.0.25-beta.129 44 1/14/2025
1.0.25-beta.128 47 1/14/2025
1.0.24 134 1/13/2025
1.0.24-beta.127 46 1/13/2025
1.0.24-beta.126 47 1/13/2025
1.0.24-beta.125 50 1/13/2025
1.0.23 325 1/10/2025
1.0.23-beta.124 50 1/13/2025
1.0.23-beta.123 46 1/12/2025
1.0.23-beta.122 50 1/12/2025
1.0.23-beta.121 58 1/11/2025
1.0.23-beta.120 49 1/10/2025
1.0.22-beta.119 48 1/10/2025
1.0.21 2,424 10/15/2024
1.0.21-beta.118 46 1/10/2025
1.0.21-beta.117 48 1/8/2025
1.0.21-beta.116 45 1/8/2025
1.0.21-beta.115 64 11/2/2024
1.0.21-beta.114 55 10/30/2024
1.0.21-beta.113 62 10/29/2024
1.0.21-beta.112 58 10/29/2024
1.0.21-beta.111 57 10/29/2024
1.0.21-beta.110 61 10/29/2024
1.0.21-beta.109 72 10/22/2024
1.0.21-beta.108 81 10/20/2024
1.0.21-beta.107 84 10/20/2024
1.0.21-beta.106 80 10/20/2024
1.0.21-beta.105 109 10/18/2024
1.0.21-beta.104 58 10/17/2024
1.0.21-beta.103 58 10/17/2024
1.0.21-beta.102 57 10/15/2024
1.0.20 462 10/11/2024
1.0.20-beta.101 63 10/15/2024
1.0.20-beta.100 60 10/15/2024
1.0.20-beta.99 66 10/14/2024
1.0.20-beta.98 64 10/14/2024
1.0.20-beta.97 57 10/14/2024
1.0.20-beta.96 59 10/11/2024
1.0.19-beta.95 76 10/11/2024
1.0.19-beta.94 98 10/11/2024
1.0.19-beta.93 73 10/11/2024
1.0.19-beta.92 65 10/11/2024
1.0.19-beta.91 88 10/11/2024
1.0.19-beta.90 59 10/11/2024
1.0.19-beta.89 65 10/11/2024
1.0.18 816 9/23/2024
1.0.18-beta.88 65 10/11/2024
1.0.18-beta.87 55 10/10/2024
1.0.18-beta.86 68 10/7/2024
1.0.18-beta.85 58 10/6/2024
1.0.18-beta.84 61 10/6/2024
1.0.18-beta.83 68 9/25/2024
1.0.18-beta.82 59 9/24/2024
1.0.18-beta.80 65 9/23/2024
1.0.17 2,117 8/30/2024
1.0.17-beta.79 61 9/23/2024
1.0.17-beta.78 59 9/23/2024
1.0.17-beta.77 49 9/19/2024
1.0.17-beta.73 75 9/17/2024
1.0.17-beta.72 70 9/17/2024
1.0.17-beta.71 74 9/17/2024
1.0.17-beta.70 74 9/17/2024
1.0.17-beta.69 75 9/17/2024
1.0.17-beta.68 74 9/17/2024
1.0.17-beta.67 68 9/16/2024
1.0.17-beta.66 70 9/10/2024
1.0.17-beta.65 68 9/10/2024
1.0.17-beta.64 74 9/5/2024
1.0.17-beta.63 65 9/4/2024
1.0.17-beta.62 76 9/4/2024
1.0.17-beta.61 66 8/30/2024
1.0.17-beta.60 67 8/30/2024
1.0.16 641 8/21/2024
1.0.16-beta.59 71 8/30/2024
1.0.16-beta.58 62 8/29/2024
1.0.16-beta.57 64 8/28/2024
1.0.16-beta.56 71 8/28/2024
1.0.16-beta.55 74 8/28/2024
1.0.16-beta.54 91 8/23/2024
1.0.16-beta.53 91 8/23/2024
1.0.16-beta.52 91 8/22/2024
1.0.16-beta.51 85 8/21/2024
1.0.15-beta.50 92 8/21/2024
1.0.15-beta.49 113 8/21/2024
1.0.15-beta.48 105 8/21/2024
1.0.15-beta.47 98 8/21/2024
1.0.15-beta.46 76 8/21/2024
1.0.13 400 8/15/2024
1.0.13-beta.36 86 8/17/2024
1.0.13-beta.35 83 8/16/2024
1.0.13-beta.34 90 8/16/2024
1.0.13-beta.33 91 8/16/2024
1.0.13-beta.32 89 8/15/2024
1.0.13-beta.31 90 8/15/2024
1.0.11 137 8/14/2024
1.0.11-beta.30 89 8/15/2024
1.0.11-beta.29 84 8/15/2024
1.0.11-beta.28 83 8/14/2024
1.0.11-beta.27 84 8/14/2024
1.0.11-beta.26 87 8/14/2024
1.0.10 148 8/14/2024
1.0.10-beta.25 90 8/14/2024
1.0.10-beta.24 80 8/14/2024
1.0.9 130 8/14/2024
1.0.9-beta.23 87 8/14/2024
1.0.8 140 8/13/2024
1.0.8-beta.22 83 8/13/2024
1.0.8-beta.21 85 8/13/2024
1.0.8-beta.20 91 8/13/2024
1.0.8-beta.19 84 8/13/2024
1.0.8-beta.18 84 8/13/2024
1.0.8-beta.17 100 8/13/2024
1.0.7-beta.16 86 8/6/2024
1.0.6 104 8/5/2024
1.0.4-beta.14 61 8/3/2024
1.0.4-beta.13 57 8/3/2024
1.0.4-beta.12 59 8/3/2024
1.0.4-beta.11 73 8/1/2024
1.0.4-beta.10 71 8/1/2024
1.0.3-beta.8 63 8/1/2024
1.0.3-beta.7 76 8/1/2024
1.0.2 111 7/26/2024
1.0.1 109 7/26/2024
1.0.0 136 7/25/2024