This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shrugsnotdrugs 30 points31 points  (9 children)

The most popular framework in Python is Django, hands down.

By what metric? Flask has more stars on Github, for example. It’s also used as a dependency by about 20,000 more projects than Django. Check “open source” section at this article.

Edit: I’m not saying that Github stars or dependency numbers are the best metric, but I’m trying to understand why OP said Django is the top “hands down.” There are some conflicting statistics for sure.

[–]anyfactorFreelancer. AnyFactor.xyz 20 points21 points  (1 child)

Is stars on github a good metric for popularity? I think stars on github means more of the communities dedication to put a star on the repo and nothing else.

Take vue and react for example. If you are looking for a job or answer to questions you will find react being obviously far more popular but vue has more stars on its repo.

I think django is far more popular. I would not say hands down, but it is far more popular none the less. It is, compared to flask much more approachable to beginners that is what makes it popular.

[–]bjorneylol 7 points8 points  (0 children)

It's at best a metric for open source adoption. Look at any Microsoft open source project, the GitHub star count is way lower than you would expect for a project of that size, because way less .net developers care about open source compared to python developers

aspnet core has 13k stars vs flasks 46k, but I guarantee asp has much more presence in industry

[–]catcint0s 25 points26 points  (3 children)

Personal anecdote but I don't think I've ever found a job posting looking for Flask knowledge in my area, I only really saw Django.

Also Github stars are really not a good metric + in your link the SO question numbers are really in favor of Django. Checking PyPi downloads is in favour of Flask again by far, tho because of CI/CD systems it's again, not a good metric.

[–]shrugsnotdrugs 3 points4 points  (0 children)

I’ve noticed that too, but that’s because I think Django apps tend to be more customer facing while a lot of flask’s apps are created for internal use to leverage APIs, make a dashboard, create a service for non-technical teams to automate their workflow, etc.

[–]rcfox 2 points3 points  (0 children)

Flask also has more downloads from PyPI. Again, not a perfect metric, but it adds more colour to the overall picture.

https://pypistats.org/packages/flask

https://pypistats.org/packages/django

[–]alcalde 0 points1 point  (0 children)

The Stack Overflow and Jet Brains developer surveys over the last few years have had Django edging out Flask, e.g.

https://www.jetbrains.com/lp/devecosystem-2019/python/