Python for Decision Makers and Business Leaders Transcripts
Chapter: Web development with Python
Lecture: Choosing a framework
0:00 With all those framework options
0:01 which one should you choose?
0:03 Well, it's not too hard.
0:05 If you want a traditional web framework
0:08 then probably Flask is the way to go.
0:10 Maybe Django, probably Flask.
0:12 Like I said, Flask seems to have a little bit momentum
0:15 and what you'll find is a lot of the more modern frameworks
0:18 have adopted Flask's API
0:20 but they make some slight variation on it.
0:23 Here are some survey results from
0:25 The Python Software Foundation
0:26 in conjunction with JetBrains, a developer tools company.
0:29 And they did a survey, the biggest survey
0:32 of the Python dDeveloper space, in 2018.
0:34 They also did it this year
0:35 but we don't yet have the results
0:37 so we're going to look up the year before.
0:39 Notice how Flask is ahead
0:41 and this call that I have on the right here is that
0:43 surprisingly, Flask has grown by 15%
0:46 usage among people who answered.
0:48 So, that's pretty awesome.
0:50 Django also is still very popular
0:52 you can see my Pyramid is in here.
0:53 And there's some other things
0:55 Hug, Falcon, Bottle and so on.
0:57 You don't even see Starlette or FastAPI, do you?
1:00 I believe those were either entirely too new
1:03 and when they did this survey, they weren't even born yet
1:05 they weren't created yet.
1:07 Or, if they were, they were very, very new
1:09 and they weren't popular enough to make it onto this list.
1:12 So which one should you choose?
1:13 Well, if you want a traditional web framework
1:16 like I said, Flask
1:17 unless your organization is all about Django
1:19 then just go with Django. That's totally good.
1:22 If you need something scalable
1:24 or you want something more modern
1:25 look at things like Starlette and FastAPI, and possibly Sanic.
1:29 But, I'd probably start with Starlette.
1:31 It seems to be the foundation of so many of these things.
1:34 And, yeah, it's, it's really good.