网页
综合
更新时间 2026-11-14 09:44:39
Introduction - Starlette
自动蜘蛛
starlette.dev
正文约 1249 字
✨ The little ASGI framework that shines. ✨
Documentation: https://starlette.dev
Source Code: https://github.com/Kludex/starlette
Starlette is a lightweight ASGI framework/toolkit, which is ideal for building async web services in Python.
It is production-ready, and gives you the following:
Help us keep Starlette maintained and sustainable by becoming a sponsor.
You'll also want to install an ASGI server, such as uvicorn or any of the other ASGI server implementations.
Then run the application...
Starlette only requires anyio, and the following dependencies are optional:
You can install all of these with pip install starlette[full].
Starlette is designed to be used either as a complete framework, or as an ASGI toolkit. You can use any of its components independently.
Run the app application in main.py:
Run uvicorn with --reload to enable auto-reloading on code changes.
The modularity that Starlette is designed on promotes building reusable components that can be shared between any ASGI framework. This should enable an ecosystem of shared middleware and mountable applications.
The clean API separation also means it's easier to understand each component in isolation.
Starlette is BSD licensed code.Designed & crafted with care.— ⭐️ —
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。