All Tools
S
Dev ToolsFreeOpen Source
STARLETTE
Lightweight ASGI framework for Python
BSD-3-Clause
ABOUT
Python developers building async web services and APIs need a framework that is fast, lightweight, and compatible with the ASGI standard, but existing frameworks either carry synchronous baggage (Flask, Django) or impose heavy abstractions (aiohttp.web). Starlette provides a minimal, composable ASGI framework with WebSocket support, background tasks, streaming responses, middleware, and test client — serving as the foundation for FastAPI while remaining usable standalone for lightweight async services and microservices.
INSTALL
pip install starletteINTEGRATION GUIDE
1. Build lightweight async API endpoints for model inference and embedding services using Starlette's ASGI-based routing, request parsing, and streaming response support
2. Serve real-time WebSocket connections for LLM token streaming and chat applications with Starlette's built-in WebSocket endpoint handling and background task management
3. Create middleware pipelines for authentication, rate limiting, and request logging across async Python services, with Starlette's composable middleware interface
TAGS
pythonasgiweb-frameworkasyncapi