Async Techniques and Examples in Python Transcripts
Chapter: asyncio-based web frameworks
Lecture: Demo: Introducing Quart for async Flask

Login or purchase this course to watch this video and the rest of the course contents.
0:00 You saw the design decision Flask is not intended to support async and currently it doesn't maybe it will at some point. So what do you do? Give up?
0:11 No, you can go use this thing called Quart. Flask, Quart, Bottle, things like that. So Quart is a Python web microframework just like Flask
0:20 it's based on asyncio and it has very good compatibility with Flask. What does that mean? It means has the same API as Flask
0:28 it means even the extensions you can install into Flask are compatible with Quart. So if you have a Flask app, chances are
0:35 you can tweak it a tiny bit, make it a Quart app and then it becomes asyncio enabled. That is our goal, our goal is to take our work in Flask app
0:44 that we saw previously and convert it to Quart and that conversion will mean a little bit of stuff to change the framework.
0:52 And then, more work to actually reimplement our services that call external services in asyncio capable ways. We already have done that once or twice
1:02 so it's not a big deal but we do have to go through those steps to do the conversion.


Talk Python's Mastodon Michael Kennedy's Mastodon