Post #1360926
2025-08-07 13:57 UTC
@hynek @ubernostrum to be fair, you can use the same pattern in Flask/Quart that you like about Litestar, defining the view/lifecycle functions then importing them and registering them with one or more app and router (blueprint) later. Litestar makes that the main way to do things, and offers a nicer way to bulk register them. A Flask app can be structured that way as well, you don't _have_ to use the bound decorators.
Replies (1)
-
@ubernostrum@infosec.exchange 2025-08-07 21:50
@davidism @hynek Yeah, I mentioned you can do it. In FastAPI it really feels like fighting against the framework. In Flask the blueprint stuff is a bit better, but just as a matter of personal taste I still prefer just not having the bound decorators to begin with.