description Starlette Overview
Starlette is a Python framework built around the ASGI standard. It facilitates the creation of asynchronous web applications and APIs, offering efficient handling of concurrent requests. Its design emphasizes flexibility and compatibility with existing Python libraries. Starlette is suitable for developers building modern backend systems requiring high performance and scalability, particularly those utilizing asynchronous programming techniques in Python.
help Starlette FAQ
What is Starlette used for in Python web development?
Starlette is a lightweight ASGI framework and toolkit for building async Python web apps and APIs. It is also one of the core foundations underneath FastAPI.
Does Starlette include data validation like FastAPI?
Not by itself. Starlette gives you routing, requests, responses, middleware, WebSockets, and background tasks, while FastAPI adds Pydantic-based validation and OpenAPI generation on top.
Which server do people usually run Starlette with?
Starlette apps are commonly run with ASGI servers such as Uvicorn or Hypercorn. A typical app exposes an ASGI callable that the server runs.
Is Starlette a good fit for WebSockets?
Yes. Starlette has built-in WebSocket support, which is useful for chat, dashboards, notifications, and other long-lived browser connections.
explore Explore More
Similar to Starlette
See all arrow_forwardReviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.