Tonya Sims (She/Her) - Faceoff Fun with Python Frameworks: FastAPI vs Flask
Channel: PyCon Thailand
Date: 2023-02-03

When you need to choose between web frameworks, our faceoff between FastAPI and Flask helps lead you to victory. To avoid wasting time, we help you discover the pros and cons of each. You’ll see a side by side comparison of features that will empower you to feel productive in your development quest. 

“All the cool kids are using FastAPI for API development.” Imagine hearing this just as you start getting more comfortable using other frameworks, like Python’s Django or Flask, to build out your APIs. Folks, there’s a new kid on the block! In this talk, there’s going to be an epic face-off between FastAPI and Flask. 

What is Flask?
Flask is a micro web framework built for Python designed to get your application up and running quickly. It’s lightweight and used by many different well-known projects. 

What is FastAPI?
FastAPI (aka the new kid) is a modern Python web framework that takes all your favorite features from other tools and combines them into one. It was built for speed, rapid development, and enhanced developer experience. 

We’ll do a side-by-side comparison of the two frameworks, including features and code structure, using a REST API. 

By the end of the face-off, you’ll have a much better understanding of which one you’ll use in your next project. 

Let’s analyze the pros and cons of each and why you’d use one over the other. You may even find a lot of similarities between the two and some contrast as well. You’ll see different categories of features for the frameworks, and a winner will be chosen for each. 

Finally, no matter which you prefer, FastAPI and Flask are both great choices for API development, so let’s have fun and let the face-off begin.