djotaku,
@djotaku@mastodon.social avatar

@miguelgrinberg As I was reading your Microdot post (https://blog.miguelgrinberg.com/post/microdot-yet-another-python-web-framework), it made me want to ask your opinion on web frameworks, especially given your expertise with Flask. I've written apps in Django, FastAPI, and Flask. I think the dev story for choosing between Django and Flask/FastAPI is pretty easy to see. But for a new project how does one decide between Flask and FastAPI? Thoughts?

miguelgrinberg,
@miguelgrinberg@mstdn.social avatar

@djotaku The three frameworks that you mentioned can be used to write any web application, regardless of what it is, so I don't think any of them is better than the other two. In every possible case the best framework to use is the one the developer(s) know best.

djotaku,
@djotaku@mastodon.social avatar

@miguelgrinberg a good answer. The only reason I asked it is that if you look at Pyramid, Django, and Flask - they are all completely different. But FastAPI is so similar to Flask. And Flask continues to evolve - it's not like it's a dead end and everyone left it for FastAPI, so I wasn't sure if there was a usecase you saw that lent itself better to one or the other.

miguelgrinberg,
@miguelgrinberg@mstdn.social avatar

@djotaku FastAPI is very different from Flask. It is asynchronous. Flask is not.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • ethstaker
  • Durango
  • osvaldo12
  • InstantRegret
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • ngwrru68w68
  • Youngstown
  • slotface
  • rosin
  • modclub
  • megavids
  • normalnudes
  • tacticalgear
  • khanakhh
  • GTA5RPClips
  • cubers
  • everett
  • tester
  • anitta
  • provamag3
  • cisconetworking
  • Leos
  • JUstTest
  • lostlight
  • All magazines