Sufast/Documentation
Quick Start
Quick Start Guide
Get your first Sufast application running in under 5 minutes.
Step-by-Step Setup
Follow these simple steps to create your first Sufast app
1
Install Sufast
pip install sufastThis installs Sufast with pre-compiled Rust binaries for optimal performance.
2
Create Your App
app.pypython
# app.py
from sufast import App
app = App()
@app.get("/")
def hello():
return {"message": "Hello from Sufast! π"}
@app.get("/health")
def health():
return {"status": "healthy"}
if __name__ == "__main__":
app.run()3
Run Your App
python app.pyYour app will be available at http://localhost:8080
4
Test Your API
# Test the endpoints
curl http://localhost:8080/
curl http://localhost:8080/healthβ
What You'll Get
High-performance API server
FastAPI-style routing
Automatic JSON responses
Built-in CORS support
52,000+ RPS performance
π Next Steps
Congratulations! You've successfully created your first Sufast application. You're now ready to build high-performance APIs with the simplicity of Python and the speed of Rust.