Skip to content
Discussion options

You must be logged in to vote

I've used both, and for a small project I'd probably stick with Flask if you already know it. It's simple and doesn't force you into too many decisions.
That said, I prefer FastAPI when I'm building something that's mainly an API. The automatic Swagger docs, type hints, Pydantic validation, and async support make things really convenient as the project grows.
For a very small app, I don't think the performance difference should be the deciding factor. I'd choose based more on what you're comfortable maintaining.

Personally, if I was starting a new API project today, I'd probably go with FastAPI. If it's a simple web app or something I'm prototyping quickly, Flask is still a great choice.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TaabishDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Discussions around programming languages, open source and software development Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
2 participants