{"repo":"tonybaloney/CSnakes","free":true,"listed":false,"github":"https://github.com/tonybaloney/CSnakes","clone":"git clone https://github.com/tonybaloney/CSnakes.git","description":"Embed Python in .NET","language":"C#","stars":1112,"topics":["csharp","dotnet","python"],"license":"MIT","category":"dev-tools","readme_excerpt":"CSnakes - a tool for embedding Python code into .NET projects Documentation CSnakes is a .NET Source Generator and Runtime that you can use to embed Python code and libraries into your C#.NET Solution at a performant, low-level without the need for REST, HTTP, or Microservices. Check out the getting started guide or check out the demo solution to see more. Features - 🤖 Supports .NET 8 and 9 - 🐍 Supports Python 3.9-3.13 - 📦 Supports Virtual Environments and C-Extensions - 💻 Supports Windows, macOS, and Linux - 🧮 Tight integration between NumPy ndarrays and Spans, 2D Spans and TensorSpans (.NET 9) - ⚡ Uses Python's C-API for fast invocation of Python code directly in the .NET process - 🧠 Uses Python type hinting to generate function signatures with .NET native types - 🧵 Supports CPython 3.13 \"free-threading\" mode - 🧩 Supports nested sequence and mapping types ( tuple , dict , list ) - 🏷️ Supports default values - 🔥 Supports Hot Reload of Python code in Visual Studio and supported IDEs - 🚀 Supports UV for fast installation of Python packages and dependencies Benefits - Uses native Python type hinting standards to produce clean, readable C# code with minimal boiler plate! - Integration between .NET and Python is done at the C-API, meaning strong compatibility between Python versions 3.8-3.13 and .NET 8-9. - Integration is low-level and high-performance. - CSnakes uses the CPython C-API and is compatible with all Python extensions. - Invocation of Python code and librar","default_branch":null,"files":null,"tree":[],"storefront":"/r/tonybaloney","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tonybaloney/CSnakes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}