-
-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta: Tracking issue for dropping Starlette #634
Comments
nice! So checkout my draft PR - I am tackling some of these there, primarily the response types and |
@Goldziher Have that on my radar already! I haven't viewed your PR in detail yet. Does it fully remove all references to the status codes and responses? |
Yes, it will. |
I added a reference to the pending PR, so it's visible that it's WIP. Once that's merged tasks will be updated! |
The remaining items for |
Wouldn't it be better to copy existing tests involving starlette classes into a separate folder (idk, |
It would certainly be cleaner. But the tests are not 1:1 imports of the Starlette tests, they are heavily modified, sometimes compeltely rewritten - the point is to make sure that whatever worked in Starlette also works in our API, but we are not testing Starlette - we are testing only our code. |
I noticed that as well. Will update the file later! |
testing client is done. |
ok, as discussed we will not include |
And, we are done |
Tracking issue for the current progress of dropping starlette dependencies
How to use?
The following list can serve as an entry-point when tackling the remove of a specific starlette dependencies. It lists the names imported from starlette by their source module and all files that import it.
It is autogenerated with the
ast
module, and will be updated accordingly.Overview
starlette.status
(Enhancement: Replace Starlette Responses #626)Names
HTTP_400_BAD_REQUEST
References
HTTP_200_OK
References
tests/handlers/http/test_to_response.pyHTTP_201_CREATED
References
HTTP_204_NO_CONTENT
HTTP_500_INTERNAL_SERVER_ERROR
References
HTTP_304_NOT_MODIFIED
WS_1000_NORMAL_CLOSURE
HTTP_404_NOT_FOUND
HTTP_401_UNAUTHORIZED
HTTP_403_FORBIDDEN
HTTP_405_METHOD_NOT_ALLOWED
HTTP_429_TOO_MANY_REQUESTS
HTTP_503_SERVICE_UNAVAILABLE
HTTP_100_CONTINUE
HTTP_307_TEMPORARY_REDIRECT
HTTP_308_PERMANENT_REDIRECT
tests/handlers/http/test_to_response.pyHTTP_406_NOT_ACCEPTABLE
starlette.datastructures
Names
MutableHeaders
(Replace starlettesHeaders
andMutableHeaders
, moveFormMultiDict
tomultidict
#732)References
URL
(Replace starletteURL
,URLPath
andAddress
#738)Headers
(Replace starlettesHeaders
andMutableHeaders
, moveFormMultiDict
tomultidict
#732)Address
(Replace starletteURL
,URLPath
andAddress
#738)URLPath
(Replace starletteURL
,URLPath
andAddress
#738)ImmutableMultiDict
(Replace starlettesHeaders
andMutableHeaders
, moveFormMultiDict
tomultidict
#732)State
starlette.middleware.Middleware
(Enhancment: Replace starlette'sMiddleware
with our own implementation #674)tests/middleware/test_middleware_handling.pystarlette.middleware.cors.CORSMiddleware
(Enhancment: Replace starlette'sCORSMiddleware
with our own implementation #669)starlette.middleware.trustedhost.TrustedHostMiddleware
(Enhancment: Replace starlette'sTrustedHostMiddleware
with our own implementation #670)starlette.staticfiles.StaticFiles
( Enhancment: Replace starlette'sStaticFiles
with our own implementation #671)starlette.responses
(Enhancement: Replace Starlette Responses #626)Names
Response
tests/handlers/http/test_to_response.pyRedirectResponse
tests/handlers/http/test_to_response.pyFileResponse
tests/handlers/http/test_to_response.pyStreamingResponse
tests/handlers/http/test_to_response.pyPlainTextResponse
tests/handlers/http/test_to_response.pyHTMLResponse
tests/handlers/http/test_to_response.pyJSONResponse
examples/routing/mounting_starlette_app.pytests/compatibility/test_starlette_responses.pytests/handlers/http/test_to_response.pystarlette.routing
Router
(Update ASGI router #644)get_name
(Replace get name #646)Route
examples/routing/mounting_starlette_app.pystarlette.exceptions.HTTPException
tests/middleware/test_exception_handler_middleware.pytests/test_exceptions.pystarlette.middleware.errors.ServerErrorMiddleware
(Enhancment: Replace starlette'sServerErrorMiddleware
with our own implementation #672)starlette.middleware.gzip
(Enhancment: Replace starlette'sGZipMiddleware
andGZipResponder
with our own implementation #673)GZipMiddleware
GZipResponder
starlette.middleware.base
BaseHTTPMiddleware
(Enhancement: Replace BaseHTTPMiddleware with a starlite implementation #642)starlite/types/composite.pytests/middleware/test_middleware_handling.pyRequestResponseEndpoint
tests/middleware/test_middleware_handling.pystarlette.requests
cookie_parser
(added cookie parser #645)SERVER_PUSH_HEADERS_TO_COPY
Request
examples/routing/mounting_starlette_app.pystarlette.testclient.TestClient
(Replace Test Client #664)starlette.background
(Replace background tasks #652)BackgroundTask
BackgroundTasks
starlette.websockets.WebSocketDisconnect
starlette.status
starlette.applications.Starlette
examples/routing/mounting_starlette_app.pyThe text was updated successfully, but these errors were encountered: