iwpnd logo

On FastAPI

Whenever I wanted people to interface some module I wrote or let them do inference on a model I resorted to Flask. After all it is lightweight, widely used, well documented and there are gazillion tutorials that help you out on getting started, e.g. the famous Flask Mega Tutorial.

the right tool for the job

I didn’t know that I needed something else until somebody told me about FastAPI. See, you can build APIs with Flask, but it was not specifically intended with that task in mind, but with the ability to construct complex web applications. While that is not specifically excluding, there’s still that “right tool for the job” mentality that I want to keep in mind when I build things.

things I like about FastAPI

I’m not one to tell you about the nitty-gritty details of both frameworks, and this is certainly not a Flask vs FastAPI discussion. I let other people talk about the differences between all of those available frameworks. One example would be a great talk by Chris Withers. What I can do, however, is tell you what I like about FastAPI, you take a look at it and decide for yourself.

Now that’s my two cents on FastAPI, just give it a try in your next project and follow in the footsteps of other adopters.

· python, FastAPI