#100DaysOfWeb in Python Transcripts
Chapter: Days 21-24: Async Flask APIs with Quart
Lecture: Your turn: Day 4 - Async Flask conversion

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Here we are in the Quart section of our GitHub repo
0:02 and it's time for day four.
0:05 So let's scroll through, we're already done some of the stuff.
0:07 You should be familiar with day two
0:09 cause you did that.
0:10 Day three was to watch all the videos
0:12 and now that you're here
0:13 if you watched them in order
0:14 you're done with day three.
0:15 You're welcome to play around with the demos
0:17 and things like that.
0:18 For day four, your job is to take one of the
0:20 existing web applications based on Flask.
0:23 So we'll take one of our existing web apps
0:25 you could use the one that you built
0:28 when we introduced Flask and just make it
0:30 a little bit slower.
0:31 We talk a little bit about how you might
0:34 slow down your app so there's actually some
0:36 reason to make it async.
0:37 You'd never really do that but it simulates
0:40 database calls, web service calls, things like that.
0:43 So then it walks you through the steps
0:46 of converting from Flask to Quart
0:49 and making everything async.
0:51 If for some reason you don't have a Flask
0:54 web app to use, and you're like
0:55 "Well I don't have an app, what am I supposed to use now?"
0:58 Just take this one.
0:59 You're welcome to take this one and make it async.
1:02 This is the one that we actually created
1:03 during the videos, so you've already kind of seen it.
1:06 Maybe that's a good thing
1:07 maybe it's not a good thing
1:08 I don't know.
1:09 So either take an existing Flask app
1:11 that you built in a previous part of this course
1:14 or somewhere else
1:15 or take this one and follow the steps here
1:17 to make it slow, convert it to Quart
1:19 and you should be able to see that it scales better.
1:22 It won't be any faster, but it will scale better.
1:25 When you're done, be sure to share what
1:26 you accomplished.
1:27 Put some sort of message out on Twitter, Facebook
1:30 that's the whole idea of this 100 Days of Code
1:32 is the social accountability.
1:33 So be sure to share what you're up to.
1:36 And if anything's unclear
1:37 you're welcome to submit an issue or even a PR
1:40 to just make it better.