3 ms·
Doing routes in a dict is kind of cute. You'd need to do a little work have flasks blueprints with prefixes and that makes me feel like this might not scale al
by shubb 3y ago
Doing routes in a dict is kind of cute.
You'd need to do a little work have flasks blueprints with prefixes and that makes me feel like this might not scale all that well?
Handling get, post, delete to the same URL is handled by an If statement in the handler function which in a lot of cases would dispatch to another function that handles get requests vs another than handles post requests. It feels weird you have to write this dispatcher.
This is a very minimalistic framework. I feel like the simplicity lends itself to a very small application like a service that just does one very simple thing.
Maybe if you don't already know another framework, e.g. you are a scientist who just wants to put an API on your analysis function, this might be a nice tool.
At the same time it feels like the lack of depth would bite you pretty fast for anything complex.