Add TurboAPI framework [Python + Zig]#10902
Open
justrach wants to merge 5 commits intoTechEmpower:masterfrom
Open
Add TurboAPI framework [Python + Zig]#10902justrach wants to merge 5 commits intoTechEmpower:masterfrom
justrach wants to merge 5 commits intoTechEmpower:masterfrom
Conversation
Docker builds with Python 3.14t free-threaded (via uv) + Zig 0.15. Both /json and /plaintext endpoints respond correctly. Known issue: container exits after ~5s due to Linux Zig thread cleanup segfault (tracked in justrach/turboAPI CI). Server responds to requests while alive. Needs investigation before official TFB submission. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
New framework: TurboAPI - Language: Python 3.14t (free-threaded) - HTTP core: Zig 0.15 native server - Tests: json, plaintext - Verified locally: both PASS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Framework: TurboAPI
Language: Python 3.14t (free-threaded, no GIL)
HTTP Core: Zig 0.15 native server (24-thread pool)
Tests: json, plaintext
What is TurboAPI?
TurboAPI is a drop-in FastAPI replacement that moves the entire HTTP layer (TCP, parsing, routing, JSON serialization, CORS) into Zig. Python only runs your business logic.
@app.get,@app.post, Depends, middleware)Test endpoints
/json{"message":"Hello, World!"}/plaintextHello, World!Local verification
Files
frameworks/Python/turboapi/benchmark_config.jsonframeworks/Python/turboapi/turboapi.dockerfileframeworks/Python/turboapi/app.pyframeworks/Python/turboapi/README.mdDocker
Uses
uvto install Python 3.14t free-threaded + Zig 0.15 for the native HTTP backend. Builds and runs on both x86_64 and aarch64.