Starlette

Latest version: v0.46.1

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 12

0.46.1

Fixed

* Allow relative directory path when `follow_symlinks=True` [2896](https://github.com/encode/starlette/pull/2896).

---

**Full Changelog**: https://github.com/encode/starlette/compare/0.46.0...0.46.1

0.46.0

Added

* `GZipMiddleware`: Make sure `Vary` header is always added if a response can be compressed [2865](https://github.com/encode/starlette/pull/2865).

Fixed

* Raise exception from background task on BaseHTTPMiddleware [2812](https://github.com/encode/starlette/pull/2812).
* `GZipMiddleware`: Don't compress on server sent events [2871](https://github.com/encode/starlette/pull/2871).

Changed

* `MultiPartParser`: Rename `max_file_size` to `spool_max_size` [2780](https://github.com/encode/starlette/pull/2780).

Deprecated

* Add deprecated warning to `TestClient(timeout=...)` [2840](https://github.com/encode/starlette/pull/2840).

New Contributors
* musicinmybrain made their first contribution in https://github.com/encode/starlette/pull/2855
* WilliamDEdwards made their first contribution in https://github.com/encode/starlette/pull/2870
* mattmess1221 made their first contribution in https://github.com/encode/starlette/pull/2865

**Full Changelog**: https://github.com/encode/starlette/compare/0.45.3...0.46.0

0.45.3

Fixed

* Turn directory into string on `lookup_path` on commonpath comparison by Kludex in https://github.com/encode/starlette/pull/2851

---

**Full Changelog**: https://github.com/encode/starlette/compare/0.45.2...0.45.3

0.45.2

Fixed

* Make `create_memory_object_stream` compatible with old anyio versions once again, and bump anyio minimum version to 3.6.2 by graingert in [2833](https://github.com/encode/starlette/pull/2833).


**Full Changelog**: https://github.com/encode/starlette/compare/0.45.1...0.45.2

0.45.1

Fixed
* Collect errors more reliably from WebSocket test client by graingert in https://github.com/encode/starlette/pull/2814
* Fix unclosed `MemoryObjectReceiveStream` upon exception in `BaseHTTPMiddleware` children by Kludex in https://github.com/encode/starlette/pull/2813

Refactor

* Use a pair of memory object streams instead of two queues by graingert in https://github.com/encode/starlette/pull/2829

---

**Full Changelog**: https://github.com/encode/starlette/compare/0.45.0...0.45.1

0.45.0

Removed

* Drop Python 3.8 by Kludex in https://github.com/encode/starlette/pull/2823
* Remove `ExceptionMiddleware` import proxy from `starlette.exceptions` module by Kludex in https://github.com/encode/starlette/pull/2826
* Remove deprecated `WS_1004_NO_STATUS_RCVD` and `WS_1005_ABNORMAL_CLOSURE` by Kludex in https://github.com/encode/starlette/pull/2827

---

**Full Changelog**: https://github.com/encode/starlette/compare/0.44.0...0.45.0

Page 1 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.