Replies: 8 comments 34 replies
-
I'm curious, could you elaborate the motivation behind dropping starlette? Is it currently restricting starlite development in some way? |
Beta Was this translation helpful? Give feedback.
-
How would you go about deprecating like the CORS middleware for example? Users might rely on the starlette implementation. I assume something like implementing a version that's backwards compatible with starlette first and issuing a |
Beta Was this translation helpful? Give feedback.
-
Also, |
Beta Was this translation helpful? Give feedback.
-
There's a few other things currently being used from starlette. I did a little search with the
So it's largely middleware, datastructures and responses. Maybe we should open a tracking issue for this to have an overview of the progress? |
Beta Was this translation helpful? Give feedback.
-
Is there any reason in particular to define all the status codes ourselves and not use the stdlib http.HTTPStatus? It's missing the websocket codes, but that's easy enough to add. |
Beta Was this translation helpful? Give feedback.
-
Regarding the
My suggestion is to create a new package called Thoughts? |
Beta Was this translation helpful? Give feedback.
-
I don't know enough about Starlite so my first reaction was: WTF, really? Edit: Nevermind, you guys already started 😆 |
Beta Was this translation helpful? Give feedback.
-
Is the plan to retain compatibility with Starlette middlewares? I've been relying on that to write middlewares that can be reused across multiple Starlette-based projects. |
Beta Was this translation helpful? Give feedback.
-
We reached a point where we can relatively easily drop Starlette as a dependency - we use only a few pieces of it's ASGI kit we can implement on our own:
The Response classes.
The ASGI LifeSpan logic
CORs Middleware
GZip Middleware
Allowed Hosts Middleware
The Test client
And the exported http statuses .
I propose we tackle these one at a time and when we are ready, drop Starlette. This can be done with almost no breaking changes and just a few adjustments to exports.
Please give your opinions on this
Beta Was this translation helpful? Give feedback.
All reactions