Python Web development in 2022: Which web frameworks are the most popular by Github stars?

Gustav Willig
4 min readAug 16, 2022

--

TL;DR: Django is the most popular web framework with 65,687 stars. The second place is Flask with 60,217 and the newcomer is FastAPI with 44,121 on the third place.

Top 8 Python Frameworks for Web Development In 2022 ranked by Github Stars.

The above chart shows that Django is in the lead with over 5,000 Stars, but fastapi is grown strong. From 2021 to 2022 fastapi grow by 38%. On the other, hand Django was just growing by 18%.

There are many Web development frameworks in the market. Choosing the right framework is a complex and tricky task. As company you choose a framework that will be maintained at least the next 5 years. It should also fit to your resources and goals. As a developer looking for a job, you will choose a framework which has high demand in the job market and fit your profile.

Below I will list the first five frameworks ranked ranked by Github Stars.

1. Django (65,687 stars)

Django is a free and open-source Python web development framework used in building websites. Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design (check out my article: https://gustavwillig.medium.com/is-django-in-2021-still-relevant-78848c5b8d59). For building highly scalable web applications with a constantly growing audience (e.g. content-based or news sites) is Django a good chose. It was created by Adrian Holovaty and Simon Willison in 2003 and used the Model-Template-View pattern.

Key features:

  • Rapid Development
  • Secure
  • Scalable
  • Fully loaded
  • Versatile
  • Open Source
  • Vast and Supported Community

2. Flask (60,217 stars)

Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries.[2] It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. However, Flask supports extensions that can add application features as if they were implemented in Flask itself. Extensions exist for object-relational mappers, form validation, upload handling, various open authentication technologies and several common framework related tools. Flask was created by Armin Ronacher of Pocoo, an international group of Python enthusiasts formed in 2004.[6] According to Ronacher, the idea was originally an April Fool’s joke that was popular enough to make into a serious application.

Key features:

  • Built-in development server, fast debugger
  • Integrated support for unit testing
  • RESTful request dispatching
  • Jinja2 Templating
  • Support for secure cookies
  • Lightweight and modular design allows for a flexible framework

3. FastAPI (44,121 stars )

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints. It was created by Sebastián Ramírez Montañ in 2019.

Key features:

  • Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic). One of the fastest Python frameworks available.
  • Fast to code: Increase the speed to develop features by about 200% to 300%.
  • Fewer bugs: Reduce about 40% of human (developer) induced errors.
  • Intuitive: Great editor support. Completion everywhere. Less time debugging.
  • Easy: Designed to be easy to use and learn. Less time reading docs.
  • Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.
  • Robust: Get production-ready code with automatic interactive documentation.
  • Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.

4. Tornado (20,662 stars )

Tornado is a scalable, non-blocking web server and web application framework written in Python.[2] It was developed for use by Friend Feed; the company was acquired by Facebook in 2009 and Tornado was open-sourced soon after.

Key features:

5. Dash (16,731 stars )

Dash is an open-source Python, R, and Julia framework for building web-based analytic applications. Many specialized open-source Dash libraries exist that are tailored for building domain-specific Dash components and applications. Some examples are Dash DAQ, for building data acquisition GUIs to use with scientific instruments, and Dash Bio, which enables users to build custom chart types, sequence analysis tools and 3D rendering tools for bioinformatics applications. It was created by company Plotly in 2017.

Key features:

  • It allows you to build highly interactive applications using only Python code.
  • It makes it simple to use the power of Python tools for manipulating data.

--

--

Gustav Willig
Gustav Willig

Written by Gustav Willig

An AI Full-Stack Developer with a passion for using data to drive business decisions. Get your latest news about Django and AI trends by subscribing

Responses (2)