Ideally we want the base litestar
package to have as few dependencies as possible. Right now we install a lot of extra packages that aren't actually needed for the core functionality.
These fall roughly into two groups: Speedups and additional features.
Speedups include:
fast-query-parsers
(#2394)multidict
Additional features:
pyyaml
to support exporting the OpenAPI schema as YAMLhttpx
for the TestClient
polyfactory
to generate OpenAPI examples (#2390)Libraries required for Litestar to work
anyio
msgspec
The goal would be to exclude everything that's not strictly necessary from the base install and make it available through package extras, which could be included in the standard
extra as well. This is a common practice and is used by packages like uvicorn
, starlette
and fastapi
.
The plan is to work on these without breaking anything, and removing the packages as required dependencies once we hit 3.0
.
No response
No response
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too