CSnakes.Runtime 1.0.25-beta.130

This is a prerelease version of CSnakes.Runtime.
There is a newer version of this package available.
See the version list below for details.
dotnet add package CSnakes.Runtime --version 1.0.25-beta.130                
NuGet\Install-Package CSnakes.Runtime -Version 1.0.25-beta.130                
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.25-beta.130" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSnakes.Runtime --version 1.0.25-beta.130                
#r "nuget: CSnakes.Runtime, 1.0.25-beta.130"                
#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.
// Install CSnakes.Runtime as a Cake Addin
#addin nuget:?package=CSnakes.Runtime&version=1.0.25-beta.130&prerelease

// Install CSnakes.Runtime as a Cake Tool
#tool nuget:?package=CSnakes.Runtime&version=1.0.25-beta.130&prerelease                

CSnakes - a tool for embedding Python into .NET projects

[!WARNING]
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

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

Package Downloads
Glidergun

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on CSnakes.Runtime:

Repository Stars
tonybaloney/CSnakes
Embed Python in .NET
Version Downloads Last updated
1.0.25 102 4 days ago
1.0.25-beta.130 20 4 days ago
1.0.25-beta.129 21 4 days ago
1.0.25-beta.128 22 4 days ago
1.0.24 109 5 days ago
1.0.24-beta.127 27 4 days ago
1.0.24-beta.126 28 5 days ago
1.0.24-beta.125 31 5 days ago
1.0.23 280 8 days ago
1.0.23-beta.124 30 5 days ago
1.0.23-beta.123 29 5 days ago
1.0.23-beta.122 29 6 days ago
1.0.23-beta.121 31 7 days ago
1.0.23-beta.120 27 8 days ago
1.0.22-beta.119 27 8 days ago
1.0.21 1,776 3 months ago
1.0.21-beta.118 25 8 days ago
1.0.21-beta.117 19 10 days ago
1.0.21-beta.116 18 10 days ago
1.0.21-beta.115 50 3 months ago
1.0.21-beta.114 47 3 months ago
1.0.21-beta.113 53 3 months ago
1.0.21-beta.112 49 3 months ago
1.0.21-beta.111 49 3 months ago
1.0.21-beta.110 50 3 months ago
1.0.21-beta.109 64 3 months ago
1.0.21-beta.108 69 3 months ago
1.0.21-beta.107 73 3 months ago
1.0.21-beta.106 71 3 months ago
1.0.21-beta.105 103 3 months ago
1.0.21-beta.104 52 3 months ago
1.0.21-beta.103 51 3 months ago
1.0.21-beta.102 48 3 months ago
1.0.20 445 3 months ago
1.0.20-beta.101 52 3 months ago
1.0.20-beta.100 54 3 months ago
1.0.20-beta.99 57 3 months ago
1.0.20-beta.98 58 3 months ago
1.0.20-beta.97 51 3 months ago
1.0.20-beta.96 53 3 months ago
1.0.19-beta.95 68 3 months ago
1.0.19-beta.94 89 3 months ago
1.0.19-beta.93 67 3 months ago
1.0.19-beta.92 60 3 months ago
1.0.19-beta.91 80 3 months ago
1.0.19-beta.90 54 3 months ago
1.0.19-beta.89 57 3 months ago
1.0.18 803 4 months ago
1.0.18-beta.88 60 3 months ago
1.0.18-beta.87 47 3 months ago
1.0.18-beta.86 62 3 months ago
1.0.18-beta.85 52 3 months ago
1.0.18-beta.84 54 3 months ago
1.0.18-beta.83 62 4 months ago
1.0.18-beta.82 49 4 months ago
1.0.18-beta.80 52 4 months ago
1.0.17 1,441 5 months ago
1.0.17-beta.79 55 4 months ago
1.0.17-beta.78 53 4 months ago
1.0.17-beta.77 42 4 months ago
1.0.17-beta.73 63 4 months ago
1.0.17-beta.72 58 4 months ago
1.0.17-beta.71 63 4 months ago
1.0.17-beta.70 62 4 months ago
1.0.17-beta.69 59 4 months ago
1.0.17-beta.68 60 4 months ago
1.0.17-beta.67 57 4 months ago
1.0.17-beta.66 59 4 months ago
1.0.17-beta.65 59 4 months ago
1.0.17-beta.64 64 4 months ago
1.0.17-beta.63 55 4 months ago
1.0.17-beta.62 63 4 months ago
1.0.17-beta.61 56 5 months ago
1.0.17-beta.60 56 5 months ago
1.0.16 630 5 months ago
1.0.16-beta.59 61 5 months ago
1.0.16-beta.58 52 5 months ago
1.0.16-beta.57 55 5 months ago
1.0.16-beta.56 59 5 months ago
1.0.16-beta.55 63 5 months ago
1.0.16-beta.54 81 5 months ago
1.0.16-beta.53 76 5 months ago
1.0.16-beta.52 79 5 months ago
1.0.16-beta.51 76 5 months ago
1.0.15-beta.50 82 5 months ago
1.0.15-beta.49 102 5 months ago
1.0.15-beta.48 93 5 months ago
1.0.15-beta.47 88 5 months ago
1.0.15-beta.46 68 5 months ago
1.0.13 386 5 months ago
1.0.13-beta.36 76 5 months ago
1.0.13-beta.35 72 5 months ago
1.0.13-beta.34 75 5 months ago
1.0.13-beta.33 80 5 months ago
1.0.13-beta.32 76 5 months ago
1.0.13-beta.31 73 5 months ago
1.0.11 126 5 months ago
1.0.11-beta.30 77 5 months ago
1.0.11-beta.29 75 5 months ago
1.0.11-beta.28 70 5 months ago
1.0.11-beta.27 76 5 months ago
1.0.11-beta.26 74 5 months ago
1.0.10 131 5 months ago
1.0.10-beta.25 81 5 months ago
1.0.10-beta.24 67 5 months ago
1.0.9 118 5 months ago
1.0.9-beta.23 78 5 months ago
1.0.8 125 5 months ago
1.0.8-beta.22 73 5 months ago
1.0.8-beta.21 77 5 months ago
1.0.8-beta.20 78 5 months ago
1.0.8-beta.19 74 5 months ago
1.0.8-beta.18 74 5 months ago
1.0.8-beta.17 90 5 months ago
1.0.7-beta.16 72 5 months ago
1.0.6 91 5 months ago
1.0.4-beta.14 53 6 months ago
1.0.4-beta.13 48 6 months ago
1.0.4-beta.12 52 6 months ago
1.0.4-beta.11 63 6 months ago
1.0.4-beta.10 63 6 months ago
1.0.3-beta.8 56 6 months ago
1.0.3-beta.7 66 6 months ago
1.0.2 102 6 months ago
1.0.1 96 6 months ago
1.0.0 108 6 months ago