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

Top 8 Python Frameworks for Web Development In 2022 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: 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.

  • 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.

  • 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.

  • 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.

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.

  • 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.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gustav Willig

Gustav Willig

Django and React developer who loves to build apps. Get your latest news about Django and React by subscribing