Typing and dependency injection on Serverless endpoints - Alternatives to Mangum & FastAPI

We have been looking at adding typing and dependency injection to our services hosted with Serverless.

We have some experience using Mangum to wrap FastAPI and it gives us some very nice features but FastAPI seems to naturally want us to have only one handler per service and then for it to handle the routing, this means we lose a lot of the dashboarding provided by serverless.

Has anyone had any success with doing something like this? Open to all suggestions and “let me google that for you” but we can’t find anything particularly useful.