Python for the .NET developer Transcripts
Chapter: Web frameworks
Lecture: Choosing a Python web framework

Login or purchase this course to watch this video and the rest of the course contents.
0:00 So which one should you choose?
0:02 Well it turns out, some are more equal than others.
0:05 Here's an excerpt from a cool survey
0:08 done by the Python Software Foundation
0:11 basically the organization that leads and oversees Python
0:14 in concert with JetBrains, who as you know make PyCharm.
0:18 So they came together to try to figure out
0:20 what does the ecosystem for the Python world look like?
0:25 Now this is probably the biggest survey
0:26 with results out at least to date.
0:29 So their 2018 survey, which is a little bit old
0:31 but still totally relevant.
0:32 And one of the things they asked
0:34 was what web frameworks do you use?
0:37 And here's a big, long list.
0:39 Flask, Django, Tornado, Pyramid.
0:41 Well those we talked about.
0:42 There's also others, like I said, there's so many.
0:44 Web2Py, Bottle, CherryPy, Falcon, Hub, TurboGears, none.
0:48 And then somewhere between that 1% and none
0:51 is all the other ones that I mentioned.
0:53 And actually you might thing they're not popular
0:56 but that's not necessarily true.
0:57 Some of those frameworks haven't even been around
1:00 for two years, so they wouldn't even show up in this list
1:03 'cause they weren't born yet.
1:04 Alright, so that's one thing to consider.
1:07 But another is Flask usage has grown 15%
1:11 since the last survey a year prior.
1:14 So if you look at the framework that has the most mojo
1:17 or the most excitement, the most growth behind it
1:19 I'd say it's probably Flask.
1:21 It's been Flask and Django were pretty close to tied
1:23 for a while in some surveys
1:25 and now Flask seems to be pulling ahead.
1:27 So we are going to work with Flask
1:28 because even though I'm an absolute fan of Pyramid
1:32 and I actually like it better than Flask
1:35 I want to give you all the best experience
1:38 in terms of what you're going to run into
1:40 out there in the world.
1:41 If you pick up some kind of web app
1:43 and you start working with it and it's Python
1:45 it's a good chance that it's Flask.
1:46 Or you go and look at a tutorial
1:48 and some tutorial like hey, I want to use Docker
1:50 and some Python web framework
1:51 good chance that it's Flask.
1:53 So we're going to pick that even though, like I said
1:55 I'm a big fan of Pyramid, I like Flask as well.
1:57 It's got a cool MVC ASP on it, MVC feel to it
2:01 and it's pretty straight forward.
2:02 I think you'll like it too.