🚧 Prototype Notice

This project (sufast) is currently a dummy prototype.
Only static routes are working at the moment.
Dynamic routing and full features are under development.
Thank you for understanding! 🙏

Sufast/Documentation
Core Concepts

Core Concepts

Understand the fundamental concepts that make Sufast powerful and easy to use.

The App Class
The central component of every Sufast application

The App class is the heart of your Sufast application. It handles routing, middleware, and server configuration with a simple, intuitive API.

Basic Application

Basic Apppython
from sufast import App

# Create an application instance
app = App()

# Define routes using decorators
@app.get("/")
def home():
    return {"message": "Welcome to Sufast"}

# Start the server
app.run()

Application Configuration

App Configurationpython
from sufast import App

# Configure the application
app = App(
    debug=True,           # Enable debug mode
    cors=True,           # Enable CORS
    title="My API",      # API title
    version="1.0.0"      # API version
)

# Custom configuration
app.run(
    host="0.0.0.0",      # Listen on all interfaces
    port=8080,           # Custom port
    workers=4            # Number of worker processes
)