
starlette 0.52.1
The little ASGI library that shines.
Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, ideal for building asynchronous web services in Python. It is production-ready and offers a range of features including HTTP web framework, WebSocket support, in-process background tasks, startup and shutdown events, and a test client built on HTTPX. Starlette also supports CORS, GZIP, static files, streaming responses, and session and cookie support. It is compatible with asyncio and trio backends and boasts great overall performance against independent benchmarks. The package can be used as a complete framework or as an ASGI toolkit, allowing for the use of any of its components independently. It requires Python 3.8+ and an ASGI server such as uvicorn, daphne, or hypercorn for operation.
Stars: 11927, Watchers: 11927, Forks: 1117, Open Issues: 49The Kludex/starlette repo was created 7 years ago and the last code push was 2 days ago.
The project is extremely popular with a mindblowing 11927 github stars!
How to Install starlette
You can install starlette using pip
pip install starlette
or add it to a project with poetry
poetry add starlette
Package Details
- Author
- None
- License
- None
- Homepage
- None
- PyPi:
- https://pypi.org/project/starlette/
- Documentation:
- https://starlette.dev/
- GitHub Repo:
- https://github.com/encode/starlette
Classifiers
- Internet/WWW/HTTP
Related Packages
Errors
A list of common starlette errors.
Code Examples
Here are some starlette code examples and snippets.
GitHub Issues
The starlette package has 49 open issues on GitHub
- Add
StarletteDeprecationWarning - An API that reads the request body for a specified number of bytes?
- Fix range requests
- Fix CORSMiddleware to return explicit origin with Authorization header
- Add
excluded_content_typesparameter toGZipMiddleware - fix: websocket prefix for StreamingResponse and FileResponse denial (…
- Can not use
send_denial_responsewithStreamingResponse - refactor: make GZipMiddleware excluded content types configurable
- Add
digest_methodtoSessionMiddleware - Replace RuntimeError with WebSocketDisconnected
- CORSMiddleware does not provide explicit origin although Authorization header is present
pythonfix








