Overview of CSnakes Advanced Features
mainCSnakes provides several advanced capabilities for complex Python integration scenarios beyond standard source-generated bindings. These include:
- Large Integer Handling: Using C#
System.Numerics.BigIntegerto interface with Python's arbitrary-precision integers. - Free-Threading Mode: Leveraging Python 3.13+ to remove Global Interpreter Lock (GIL) limitations for true parallelism.
- Manual Python Integration: Using the CSnakes runtime API directly to bypass the source generator for maximum control.
- Hot Reload Support: Modifying Python code during development without application restarts.
- Signal Handler Configuration: Managing how Python signal handlers interact with .NET hosting frameworks.
- Native AOT Support: Compiling applications with Native AOT for faster startup and self-contained deployment.