
SlimeWeb
A simple lightweight fast python webframework backed by rust
1 follower
A simple lightweight fast python webframework backed by rust
1 follower
Unlike Flask or FastAPI, this framework builds its core HTTP server in Rust, but lets you write your API code comfortably in Python. It runs as a single process with multiple workers, taking full advantage of Python's no-GIL mode. In microbenchmark tests with the WRK tool, it crushes 120,000 requests per second (RPS) without GIL, double the 50-60k RPS with GIL and still outperforms both Flask and FastAPI.


I want to leverage Rust’s networking performance along with Python’s no-GIL capabilities. give this a try and would appreciate any feedback, criticism, or contributions.
Sample Code:
Features:
Python handler functions
Rust powered HTTP server
Single Process & Multiple worker pool model
Sync & Async handler
Multipart form support
File uploads
Streaming Response
Cookie signing
Custom headers
JSON / HTML / raw responses
Templates rendering with context
Static serving
Hot reload
WebSocket
App state
Compression
Middleware plugin
Generate docs
Dynamic body read size constraint
Links:
https://pypi.org/project/SlimeWeb/
https://github.com/ATOMMAX-2001/Slime
Ty ✌️❤️