CSnakes.Runtime 1.0.35

dotnet add package CSnakes.Runtime --version 1.0.35
                    
NuGet\Install-Package CSnakes.Runtime -Version 1.0.35
                    
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.35" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSnakes.Runtime" Version="1.0.35" />
                    
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.35
                    
#r "nuget: CSnakes.Runtime, 1.0.35"
                    
#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.35
                    
Install CSnakes.Runtime as a Cake Addin
#tool nuget:?package=CSnakes.Runtime&version=1.0.35
                    
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.35 758 6/5/2025
1.0.35-beta.214 0 6/12/2025
1.0.35-beta.213 10 6/11/2025
1.0.35-beta.212 27 6/11/2025
1.0.35-beta.211 26 6/11/2025
1.0.35-beta.210 32 6/11/2025
1.0.35-beta.209 27 6/11/2025
1.0.35-beta.208 35 6/6/2025
1.0.35-beta.207 107 6/5/2025
1.0.34 1,596 5/25/2025
1.0.34-beta.206 111 6/5/2025
1.0.34-beta.205 100 6/4/2025
1.0.34-beta.204 106 6/4/2025
1.0.34-beta.203 107 6/4/2025
1.0.34-beta.202 105 6/4/2025
1.0.34-beta.201 106 6/4/2025
1.0.34-beta.200 104 6/3/2025
1.0.34-beta.199 106 6/2/2025
1.0.34-beta.198 107 6/2/2025
1.0.34-beta.197 106 6/2/2025
1.0.34-beta.196 62 5/25/2025
1.0.34-beta.195 67 5/25/2025
1.0.33 1,100 5/7/2025
1.0.33-beta.194 36 5/24/2025
1.0.33-beta.193 56 5/23/2025
1.0.33-beta.192 56 5/23/2025
1.0.33-beta.191 57 5/23/2025
1.0.33-beta.190 113 5/8/2025
1.0.33-beta.189 112 5/8/2025
1.0.33-beta.188 120 5/7/2025
1.0.32 598 4/29/2025
1.0.32-beta.187 122 5/7/2025
1.0.32-beta.186 109 5/6/2025
1.0.32-beta.185 111 5/5/2025
1.0.32-beta.184 117 5/5/2025
1.0.32-beta.183 109 4/30/2025
1.0.32-beta.182 113 4/30/2025
1.0.32-beta.181 108 4/30/2025
1.0.32-beta.180 122 4/29/2025
1.0.31 1,247 4/23/2025
1.0.31-beta.179 125 4/28/2025
1.0.31-beta.178 120 4/28/2025
1.0.31-beta.177 127 4/28/2025
1.0.31-beta.176 123 4/28/2025
1.0.31-beta.175 119 4/28/2025
1.0.31-beta.174 123 4/27/2025
1.0.31-beta.173 124 4/24/2025
1.0.31-beta.172 123 4/24/2025
1.0.31-beta.171 117 4/24/2025
1.0.31-beta.170 125 4/24/2025
1.0.31-beta.169 120 4/24/2025
1.0.31-beta.168 126 4/23/2025
1.0.31-beta.167 122 4/23/2025
1.0.31-beta.166 120 4/23/2025
1.0.31-beta.165 124 4/23/2025
1.0.30 2,447 3/26/2025
1.0.30-beta.164 126 4/23/2025
1.0.30-beta.163 118 4/22/2025
1.0.30-beta.162 119 4/22/2025
1.0.30-beta.161 119 4/18/2025
1.0.30-beta.160 151 4/17/2025
1.0.30-beta.159 129 4/6/2025
1.0.30-beta.158 125 4/6/2025
1.0.30-beta.157 128 4/4/2025
1.0.30-beta.156 118 4/3/2025
1.0.30-beta.155 120 4/3/2025
1.0.30-beta.154 123 4/3/2025
1.0.30-beta.153 125 4/3/2025
1.0.30-beta.152 120 3/30/2025
1.0.30-beta.151 436 3/26/2025
1.0.29 538 3/14/2025
1.0.29-beta.150 439 3/26/2025
1.0.29-beta.149 111 3/21/2025
1.0.29-beta.148 120 3/20/2025
1.0.29-beta.147 113 3/17/2025
1.0.29-beta.146 102 3/16/2025
1.0.29-beta.145 102 3/14/2025
1.0.28 228 3/12/2025
1.0.28-beta.144 101 3/14/2025
1.0.28-beta.143 127 3/12/2025
1.0.27 1,575 2/14/2025
1.0.27-beta.142 126 3/12/2025
1.0.27-beta.141 125 3/12/2025
1.0.27-beta.140 129 3/10/2025
1.0.27-beta.139 56 2/28/2025
1.0.27-beta.138 57 2/14/2025
1.0.26 2,708 1/27/2025
1.0.26-beta.137 59 2/14/2025
1.0.26-beta.136 67 2/10/2025
1.0.26-beta.135 76 1/27/2025
1.0.25 513 1/14/2025
1.0.25-beta.134 57 1/27/2025
1.0.25-beta.133 53 1/22/2025
1.0.25-beta.132 58 1/22/2025
1.0.25-beta.131 52 1/22/2025
1.0.25-beta.130 44 1/14/2025
1.0.25-beta.129 45 1/14/2025
1.0.25-beta.128 49 1/14/2025
1.0.24 136 1/13/2025
1.0.24-beta.127 47 1/13/2025
1.0.24-beta.126 48 1/13/2025
1.0.24-beta.125 51 1/13/2025
1.0.23 327 1/10/2025
1.0.23-beta.124 51 1/13/2025
1.0.23-beta.123 47 1/12/2025
1.0.23-beta.122 51 1/12/2025
1.0.23-beta.121 59 1/11/2025
1.0.23-beta.120 50 1/10/2025
1.0.22-beta.119 50 1/10/2025
1.0.21 2,445 10/15/2024
1.0.21-beta.118 48 1/10/2025
1.0.21-beta.117 51 1/8/2025
1.0.21-beta.116 46 1/8/2025
1.0.21-beta.115 65 11/2/2024
1.0.21-beta.114 58 10/30/2024
1.0.21-beta.113 63 10/29/2024
1.0.21-beta.112 59 10/29/2024
1.0.21-beta.111 58 10/29/2024
1.0.21-beta.110 62 10/29/2024
1.0.21-beta.109 73 10/22/2024
1.0.21-beta.108 82 10/20/2024
1.0.21-beta.107 85 10/20/2024
1.0.21-beta.106 81 10/20/2024
1.0.21-beta.105 110 10/18/2024
1.0.21-beta.104 59 10/17/2024
1.0.21-beta.103 59 10/17/2024
1.0.21-beta.102 58 10/15/2024
1.0.20 465 10/11/2024
1.0.20-beta.101 64 10/15/2024
1.0.20-beta.100 61 10/15/2024
1.0.20-beta.99 67 10/14/2024
1.0.20-beta.98 65 10/14/2024
1.0.20-beta.97 58 10/14/2024
1.0.20-beta.96 60 10/11/2024
1.0.19-beta.95 77 10/11/2024
1.0.19-beta.94 99 10/11/2024
1.0.19-beta.93 74 10/11/2024
1.0.19-beta.92 66 10/11/2024
1.0.19-beta.91 89 10/11/2024
1.0.19-beta.90 60 10/11/2024
1.0.19-beta.89 66 10/11/2024
1.0.18 818 9/23/2024
1.0.18-beta.88 66 10/11/2024
1.0.18-beta.87 56 10/10/2024
1.0.18-beta.86 69 10/7/2024
1.0.18-beta.85 59 10/6/2024
1.0.18-beta.84 62 10/6/2024
1.0.18-beta.83 69 9/25/2024
1.0.18-beta.82 61 9/24/2024
1.0.18-beta.80 66 9/23/2024
1.0.17 2,168 8/30/2024
1.0.17-beta.79 63 9/23/2024
1.0.17-beta.78 60 9/23/2024
1.0.17-beta.77 50 9/19/2024
1.0.17-beta.73 76 9/17/2024
1.0.17-beta.72 71 9/17/2024
1.0.17-beta.71 76 9/17/2024
1.0.17-beta.70 75 9/17/2024
1.0.17-beta.69 76 9/17/2024
1.0.17-beta.68 75 9/17/2024
1.0.17-beta.67 69 9/16/2024
1.0.17-beta.66 71 9/10/2024
1.0.17-beta.65 69 9/10/2024
1.0.17-beta.64 75 9/5/2024
1.0.17-beta.63 66 9/4/2024
1.0.17-beta.62 77 9/4/2024
1.0.17-beta.61 67 8/30/2024
1.0.17-beta.60 71 8/30/2024
1.0.16 643 8/21/2024
1.0.16-beta.59 73 8/30/2024
1.0.16-beta.58 65 8/29/2024
1.0.16-beta.57 65 8/28/2024
1.0.16-beta.56 72 8/28/2024
1.0.16-beta.55 75 8/28/2024
1.0.16-beta.54 92 8/23/2024
1.0.16-beta.53 92 8/23/2024
1.0.16-beta.52 99 8/22/2024
1.0.16-beta.51 86 8/21/2024
1.0.15-beta.50 93 8/21/2024
1.0.15-beta.49 114 8/21/2024
1.0.15-beta.48 106 8/21/2024
1.0.15-beta.47 99 8/21/2024
1.0.15-beta.46 77 8/21/2024
1.0.13 402 8/15/2024
1.0.13-beta.36 87 8/17/2024
1.0.13-beta.35 85 8/16/2024
1.0.13-beta.34 91 8/16/2024
1.0.13-beta.33 92 8/16/2024
1.0.13-beta.32 90 8/15/2024
1.0.13-beta.31 91 8/15/2024
1.0.11 139 8/14/2024
1.0.11-beta.30 90 8/15/2024
1.0.11-beta.29 85 8/15/2024
1.0.11-beta.28 84 8/14/2024
1.0.11-beta.27 85 8/14/2024
1.0.11-beta.26 88 8/14/2024
1.0.10 150 8/14/2024
1.0.10-beta.25 91 8/14/2024
1.0.10-beta.24 81 8/14/2024
1.0.9 132 8/14/2024
1.0.9-beta.23 88 8/14/2024
1.0.8 142 8/13/2024
1.0.8-beta.22 84 8/13/2024
1.0.8-beta.21 86 8/13/2024
1.0.8-beta.20 92 8/13/2024
1.0.8-beta.19 85 8/13/2024
1.0.8-beta.18 85 8/13/2024
1.0.8-beta.17 101 8/13/2024
1.0.7-beta.16 88 8/6/2024
1.0.6 109 8/5/2024
1.0.4-beta.14 62 8/3/2024
1.0.4-beta.13 58 8/3/2024
1.0.4-beta.12 62 8/3/2024
1.0.4-beta.11 76 8/1/2024
1.0.4-beta.10 72 8/1/2024
1.0.3-beta.8 64 8/1/2024
1.0.3-beta.7 77 8/1/2024
1.0.2 114 7/26/2024
1.0.1 111 7/26/2024
1.0.0 148 7/25/2024