r/FastAPI • • Jul 29 '21

Question What does Flask have that FastAPI doesn't currently have?

I would like to help FastAPI/Starlette overtake flask to become the de facto framework for microservices and REST APIs. (I think Django projects generally target a different use case so I'm less concerned with trying to gain feature parity with Django)

I'm currently creating a comparison of similar 3rd party libs from each framework by cross-referencing:

I'm wondering if any of you with flask experience ever have feelings of:

I wish FastAPI had an equivalent of flask feature/plugin 'X'

Depending on the scope of the feature I'd like to try to implement or improve the biggest gaps between FastAPI and flask. Either by contributing to an active repo or creating my own.

For context, I've been working with FastAPI/Starlette/pydantic and asyncio on/off for around 2 years.

15 Upvotes

12 comments sorted by

View all comments

7

u/SCUSKU Jul 29 '21

Because Flask is older, it does have more tutorials and weird edge cases answered on Stack Overflow compared to FastAPI. Also, there are a lot more Flask "plugins" that can help your project, that I don't think FastAPI has as many of yet. For example, Flask-Compress (https://pypi.org/project/Flask-Compress/).

16

u/ColdPorridge Jul 30 '21

The old tutorials and flask plug-ins can be as much of a curse though. I’ve been building a flask project for the last few months and I can’t overstate how annoying how much abandonware and out-of-date tutorials there are. As someone who has not been using it for years, it really is quite hard to find consistent best practices for Flask.

3

u/JustaDevOnTheMove Jul 30 '21

Agreed, finding the basics just to get started is easy but anything remotely real-life and production-worthy is much harder not to mention best-practices