Patrick's Software Blog

Async in Flask 2.x

Notebook on a table with linen cloth with Async in Flask 2 written on the notebook.

Introduction

Flask 2.0, which was released on May 11th, 2021, adds built-in support for asynchronous routes, error handlers, before and after request functions, and teardown callbacks!

This blog post looks at Flask 2.0's new async functionality and how to leverage it in your Flask projects.

The full article can be found on TestDriven.io: https://testdriven.io/blog/flask-async/