| What it is | Fast asynchronous Python web framework with its own production server | Python web framework and asynchronous networking library | Lightweight ASGI framework and toolkit for async Python web services | FastAPI framework, high performance, easy to learn, fast to code, ready for production |
| Features | - async/await request handlers
- built-in production web server with workers and TLS
- automatic local TLS certificates in dev mode
- ASGI compliant
- websockets, static files, blueprints and middleware
- signals for built-in and custom events
- app inspector for running servers
| - asynchronous web framework
- non-blocking network I/O for many open connections
- WebSockets and long polling
- asyncio integration
| - lightweight HTTP web framework
- WebSocket support
- in-process background tasks
- startup and shutdown events
- test client
- CORS, GZip, static files and streaming responses
- session and cookie support
- asyncio and Trio backends
| - request validation from type hints with Pydantic
- automatic OpenAPI schema and JSON Schema
- interactive API docs with Swagger UI and ReDoc
- async and sync endpoints
- dependency injection
- WebSockets and background tasks
- security utilities for OAuth2 and API keys
- FastAPI CLI for running apps
- All 9 features
|