CSnakes.Runtime 1.0.29

There is a newer version of this package available.
See the version list below for details.
dotnet add package CSnakes.Runtime --version 1.0.29
                    
NuGet\Install-Package CSnakes.Runtime -Version 1.0.29
                    
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.29" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSnakes.Runtime" Version="1.0.29" />
                    
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.29
                    
#r "nuget: CSnakes.Runtime, 1.0.29"
                    
#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 CSnakes.Runtime@1.0.29
                    
#: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=CSnakes.Runtime&version=1.0.29
                    
Install as a Cake Addin
#tool nuget:?package=CSnakes.Runtime&version=1.0.29
                    
Install as a Cake Tool

CSnakes - a tool for embedding Python into .NET projects

This project is in prototype stage and the API is subject to change.

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
2.0.0-beta.271 159 8/28/2025
2.0.0-beta.270 162 8/28/2025
2.0.0-beta.269 156 8/28/2025
2.0.0-beta.268 234 8/25/2025
2.0.0-beta.267 73 8/22/2025
2.0.0-beta.266 123 8/20/2025
2.0.0-beta.265 118 8/18/2025
2.0.0-beta.264 109 8/18/2025
2.0.0-beta.263 108 8/18/2025
2.0.0-beta.262 112 8/18/2025
2.0.0-beta.261 132 8/14/2025
2.0.0-beta.260 128 8/13/2025
2.0.0-beta.259 123 8/12/2025
2.0.0-beta.258 121 8/12/2025
1.2.1 2,193 8/8/2025
1.2.1-beta.257 120 8/12/2025
1.2.1-beta.256 126 8/12/2025
1.2.1-beta.255 109 8/9/2025
1.2.1-beta.254 173 8/8/2025
1.2.0 711 8/1/2025
1.2.0-beta.253 168 8/8/2025
1.2.0-beta.252 173 8/8/2025
1.2.0-beta.250 76 8/1/2025
1.1.0 5,369 6/24/2025
1.1.0-beta.249 83 8/1/2025
1.1.0-beta.246 443 7/24/2025
1.1.0-beta.245 443 7/24/2025
1.1.0-beta.244 491 7/23/2025
1.1.0-beta.243 493 7/22/2025
1.1.0-beta.242 479 7/22/2025
1.1.0-beta.241 121 7/15/2025
1.1.0-beta.240 115 7/14/2025
1.1.0-beta.239 124 7/9/2025
1.1.0-beta.238 122 7/8/2025
1.1.0-beta.237 126 6/25/2025
1.1.0-beta.236 124 6/24/2025
1.1.0-beta.235 120 6/24/2025
1.0.35 3,027 6/5/2025
1.0.35-beta.234 118 6/24/2025
1.0.35-beta.233 121 6/24/2025
1.0.35-beta.232 117 6/24/2025
1.0.35-beta.231 117 6/23/2025
1.0.35-beta.230 123 6/23/2025
1.0.35-beta.229 120 6/23/2025
1.0.35-beta.228 123 6/23/2025
1.0.35-beta.227 120 6/23/2025
1.0.35-beta.226 120 6/18/2025
1.0.35-beta.225 124 6/18/2025
1.0.35-beta.224 122 6/16/2025
1.0.35-beta.223 126 6/15/2025
1.0.35-beta.222 124 6/15/2025
1.0.35-beta.221 129 6/15/2025
1.0.35-beta.220 118 6/15/2025
1.0.35-beta.219 111 6/15/2025
1.0.35-beta.218 107 6/15/2025
1.0.35-beta.217 107 6/15/2025
1.0.35-beta.216 122 6/14/2025
1.0.35-beta.215 264 6/12/2025
1.0.35-beta.214 268 6/12/2025
1.0.35-beta.213 269 6/11/2025
1.0.35-beta.212 266 6/11/2025
1.0.35-beta.211 267 6/11/2025
1.0.35-beta.210 271 6/11/2025
1.0.35-beta.209 266 6/11/2025
1.0.35-beta.208 53 6/6/2025
1.0.35-beta.207 127 6/5/2025
1.0.34 1,975 5/25/2025
1.0.34-beta.206 131 6/5/2025
1.0.34-beta.205 122 6/4/2025
1.0.34-beta.204 126 6/4/2025
1.0.34-beta.203 127 6/4/2025
1.0.34-beta.202 126 6/4/2025
1.0.34-beta.201 127 6/4/2025
1.0.34-beta.200 125 6/3/2025
1.0.34-beta.199 126 6/2/2025
1.0.34-beta.198 127 6/2/2025
1.0.34-beta.197 126 6/2/2025
1.0.34-beta.196 81 5/25/2025
1.0.34-beta.195 85 5/25/2025
1.0.33 1,155 5/7/2025
1.0.33-beta.194 53 5/24/2025
1.0.33-beta.193 82 5/23/2025
1.0.33-beta.192 72 5/23/2025
1.0.33-beta.191 84 5/23/2025
1.0.33-beta.190 139 5/8/2025
1.0.33-beta.189 129 5/8/2025
1.0.33-beta.188 152 5/7/2025
1.0.32 626 4/29/2025
1.0.32-beta.187 149 5/7/2025
1.0.32-beta.186 125 5/6/2025
1.0.32-beta.185 129 5/5/2025
1.0.32-beta.184 143 5/5/2025
1.0.32-beta.183 133 4/30/2025
1.0.32-beta.182 147 4/30/2025
1.0.32-beta.181 127 4/30/2025
1.0.32-beta.180 144 4/29/2025
1.0.31 1,281 4/23/2025
1.0.31-beta.179 148 4/28/2025
1.0.31-beta.178 148 4/28/2025
1.0.31-beta.177 147 4/28/2025
1.0.31-beta.176 143 4/28/2025
1.0.31-beta.175 137 4/28/2025
1.0.31-beta.174 146 4/27/2025
1.0.31-beta.173 158 4/24/2025
1.0.31-beta.172 145 4/24/2025
1.0.31-beta.171 138 4/24/2025
1.0.31-beta.170 143 4/24/2025
1.0.31-beta.169 140 4/24/2025
1.0.31-beta.168 152 4/23/2025
1.0.31-beta.167 142 4/23/2025
1.0.31-beta.166 141 4/23/2025
1.0.31-beta.165 148 4/23/2025
1.0.30 3,119 3/26/2025
1.0.30-beta.164 145 4/23/2025
1.0.30-beta.163 141 4/22/2025
1.0.30-beta.162 143 4/22/2025
1.0.30-beta.161 138 4/18/2025
1.0.30-beta.160 175 4/17/2025
1.0.30-beta.159 153 4/6/2025
1.0.30-beta.158 145 4/6/2025
1.0.30-beta.157 154 4/4/2025
1.0.30-beta.156 141 4/3/2025
1.0.30-beta.155 139 4/3/2025
1.0.30-beta.154 145 4/3/2025
1.0.30-beta.153 146 4/3/2025
1.0.30-beta.152 154 3/30/2025
1.0.30-beta.151 454 3/26/2025
1.0.29 579 3/14/2025
1.0.29-beta.150 457 3/26/2025
1.0.29-beta.149 128 3/21/2025
1.0.29-beta.148 136 3/20/2025
1.0.29-beta.147 147 3/17/2025
1.0.29-beta.146 126 3/16/2025
1.0.29-beta.145 122 3/14/2025
1.0.28 245 3/12/2025
1.0.28-beta.144 122 3/14/2025
1.0.28-beta.143 158 3/12/2025
1.0.27 2,025 2/14/2025
1.0.27-beta.142 151 3/12/2025
1.0.27-beta.141 144 3/12/2025
1.0.27-beta.140 146 3/10/2025
1.0.27-beta.139 79 2/28/2025
1.0.27-beta.138 75 2/14/2025
1.0.26 3,860 1/27/2025
1.0.26-beta.137 80 2/14/2025
1.0.26-beta.136 88 2/10/2025
1.0.26-beta.135 100 1/27/2025
1.0.25 534 1/14/2025
1.0.25-beta.134 79 1/27/2025
1.0.25-beta.133 75 1/22/2025
1.0.25-beta.132 78 1/22/2025
1.0.25-beta.131 74 1/22/2025
1.0.25-beta.130 71 1/14/2025
1.0.25-beta.129 68 1/14/2025
1.0.25-beta.128 73 1/14/2025
1.0.24 168 1/13/2025
1.0.24-beta.127 63 1/13/2025
1.0.24-beta.126 68 1/13/2025
1.0.24-beta.125 72 1/13/2025
1.0.23 345 1/10/2025
1.0.23-beta.124 76 1/13/2025
1.0.23-beta.123 70 1/12/2025
1.0.23-beta.122 85 1/12/2025
1.0.23-beta.121 79 1/11/2025
1.0.23-beta.120 71 1/10/2025
1.0.22-beta.119 67 1/10/2025
1.0.21 3,222 10/15/2024
1.0.21-beta.118 66 1/10/2025
1.0.21-beta.117 79 1/8/2025
1.0.21-beta.116 65 1/8/2025
1.0.21-beta.115 95 11/2/2024
1.0.21-beta.114 87 10/30/2024
1.0.21-beta.113 81 10/29/2024
1.0.21-beta.112 81 10/29/2024
1.0.21-beta.111 77 10/29/2024
1.0.21-beta.110 78 10/29/2024
1.0.21-beta.109 97 10/22/2024
1.0.21-beta.108 103 10/20/2024
1.0.21-beta.107 106 10/20/2024
1.0.21-beta.106 99 10/20/2024
1.0.21-beta.105 127 10/18/2024
1.0.21-beta.104 75 10/17/2024
1.0.21-beta.103 78 10/17/2024
1.0.21-beta.102 73 10/15/2024
1.0.20 484 10/11/2024
1.0.20-beta.101 81 10/15/2024
1.0.20-beta.100 77 10/15/2024
1.0.20-beta.99 88 10/14/2024
1.0.20-beta.98 81 10/14/2024
1.0.20-beta.97 85 10/14/2024
1.0.20-beta.96 80 10/11/2024
1.0.19-beta.95 96 10/11/2024
1.0.19-beta.94 115 10/11/2024
1.0.19-beta.93 94 10/11/2024
1.0.19-beta.92 83 10/11/2024
1.0.19-beta.91 108 10/11/2024
1.0.19-beta.90 77 10/11/2024
1.0.19-beta.89 85 10/11/2024
1.0.18 849 9/23/2024
1.0.18-beta.88 84 10/11/2024
1.0.18-beta.87 75 10/10/2024
1.0.18-beta.86 91 10/7/2024
1.0.18-beta.85 79 10/6/2024
1.0.18-beta.84 80 10/6/2024
1.0.18-beta.83 95 9/25/2024
1.0.18-beta.82 78 9/24/2024
1.0.18-beta.80 83 9/23/2024
1.0.17 2,388 8/30/2024
1.0.17-beta.79 98 9/23/2024
1.0.17-beta.78 79 9/23/2024
1.0.17-beta.77 69 9/19/2024
1.0.17-beta.73 97 9/17/2024
1.0.17-beta.72 96 9/17/2024
1.0.17-beta.71 106 9/17/2024
1.0.17-beta.70 95 9/17/2024
1.0.17-beta.69 97 9/17/2024
1.0.17-beta.68 104 9/17/2024
1.0.17-beta.67 95 9/16/2024
1.0.17-beta.66 100 9/10/2024
1.0.17-beta.65 91 9/10/2024
1.0.17-beta.64 102 9/5/2024
1.0.17-beta.63 89 9/4/2024
1.0.17-beta.62 99 9/4/2024
1.0.17-beta.61 88 8/30/2024
1.0.17-beta.60 103 8/30/2024
1.0.16 665 8/21/2024
1.0.16-beta.59 112 8/30/2024
1.0.16-beta.58 98 8/29/2024
1.0.16-beta.57 93 8/28/2024
1.0.16-beta.56 94 8/28/2024
1.0.16-beta.55 96 8/28/2024
1.0.16-beta.54 121 8/23/2024
1.0.16-beta.53 115 8/23/2024
1.0.16-beta.52 133 8/22/2024
1.0.16-beta.51 105 8/21/2024
1.0.15-beta.50 112 8/21/2024
1.0.15-beta.49 137 8/21/2024
1.0.15-beta.48 126 8/21/2024
1.0.15-beta.47 124 8/21/2024
1.0.15-beta.46 99 8/21/2024
1.0.13 427 8/15/2024
1.0.13-beta.36 109 8/17/2024
1.0.13-beta.35 104 8/16/2024
1.0.13-beta.34 117 8/16/2024
1.0.13-beta.33 112 8/16/2024
1.0.13-beta.32 119 8/15/2024
1.0.13-beta.31 111 8/15/2024
1.0.11 158 8/14/2024
1.0.11-beta.30 117 8/15/2024
1.0.11-beta.29 113 8/15/2024
1.0.11-beta.28 104 8/14/2024
1.0.11-beta.27 110 8/14/2024
1.0.11-beta.26 112 8/14/2024
1.0.10 176 8/14/2024
1.0.10-beta.25 120 8/14/2024
1.0.10-beta.24 100 8/14/2024
1.0.9 153 8/14/2024
1.0.9-beta.23 115 8/14/2024
1.0.8 166 8/13/2024
1.0.8-beta.22 111 8/13/2024
1.0.8-beta.21 106 8/13/2024
1.0.8-beta.20 115 8/13/2024
1.0.8-beta.19 110 8/13/2024
1.0.8-beta.18 119 8/13/2024
1.0.8-beta.17 121 8/13/2024
1.0.7-beta.16 110 8/6/2024
1.0.6 140 8/5/2024
1.0.4-beta.14 85 8/3/2024
1.0.4-beta.13 81 8/3/2024
1.0.4-beta.12 91 8/3/2024
1.0.4-beta.11 104 8/1/2024
1.0.4-beta.10 94 8/1/2024
1.0.3-beta.8 87 8/1/2024
1.0.3-beta.7 104 8/1/2024
1.0.2 137 7/26/2024
1.0.1 134 7/26/2024
1.0.0 253 7/25/2024