A curated list of awesome Python Web Frameworks (micro, full-stack, REST, etc.)
- Django ★82608 - a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Includes ORM, templatting engine, etc.
- Awesome Django ★9991
- Emmett ★1114 - a full-stack Python web framework designed with simplicity in mind.
- Flask ★68984 - a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications.
- Awesome Flask ★1557
- Pyramid ★4017 - a small, fast, down-to-earth, open source Python web framework. It makes real-world web application development and deployment more fun, more predictable, and more productive.
- Awesome Pyramid ★558
- Quart ★3199 - Quart is an asyncio reimplementation of the popular Flask microframework API. This means that if you understand Flask you understand Quart.
- Falcon ★9609 - a reliable, high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural style, and tries to do as little as possible while remaining highly effective. Also async.
- Bottle ★8551 - a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.
- Molten ★976 - A minimal, extensible, fast and productive framework for building HTTP APIs with Python 3.6 and later.
- FastAPI ★81741 - a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints. Based on Starlette (see below).
- Awesome FastAPI ★9230
- Sanic ★18272 - a Python 3.7+ web server and web framework that's written to go fast. It allows the usage of the async/await syntax added in Python 3.5, which makes your code non-blocking and speedy. Based on Starlette.
- Awesome Sanic ★755
- Aiohttp ★15475 - Asynchronous HTTP client/server framework for asyncio and Python.
- Starlette ★10679 - a lightweight ASGI framework/toolkit, which is ideal for building high performance asyncio services.
- Fasthtml ★6123 - "The fastest way to create an HTML app". (Based on Starlette).
- Litestar ★6075 - Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs.
- Awesome Litestar ★97
- Robyn ★5424 - a fast and extensible async python web server with a rust runtime.
- BlackSheep ★2097 - BlackSheep is an asynchronous web framework to build event based web applications with Python.
- Esmerald ★337 - Highly scalable, performant, easy to learn, easy to code and for every sizeable and complex application.
- MicroPie ★155 - MicroPie is an ultra-micro ASGI Python web framework that gets out of your way.
- uapi ★92 - a high-level, extremely fast Python microframework for writing HTTP APIs, either synchronously or asynchronously. Uses a lower-level HTTP framework to run. Currently supported frameworks are aiohttp, Flask, Quart, and Starlette.
- Hug ★6878 - aims to make developing Python driven APIs as simple as possible, but no simpler. As a result, it drastically simplifies Python API development.
- Morepath ★393 - "web microframework with super powers". An application consists of models. Each type of model is published on a URL path. Content is exposed to the web using views.
- nanoasgi ★23 - A toy ASGI web framework (170 lines)
- Django Rest Framework ★28878 - a powerful and flexible toolkit for building Web APIs.
- Eve ★6717 - an open source Python REST API framework based on Flask. It allows to effortlessly build and deploy highly customizable, fully featured RESTful Web Services. Eve offers native support for MongoDB, and SQL backends via community extensions.
- Connexion ★4520 - Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support.
- Flask-Restx ★2187 - Fully featured framework for fast, easy and documented API development with Flask.
- Flask Smorest ★684 - a REST API framework built upon Flask and marshmallow.
- Djapy ★99 - Django coupled with Pydantic, RestAPI framework
- Flask-Restful ★6878 - Simple framework for creating REST APIs.
- API star ★5570 - a framework-agnostic toolkit for working with OpenAPI or Swagger schemas.
- Ripozo ★201 - A tool for quickly creating REST/HATEOAS/Hypermedia APIs in python. [Dead]
- Reflex ★21933 - Reflex is a library to build full-stack web apps in pure Python.
- Flet ★12499 - Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
- Nicegui ★11463 - Create web-based user interfaces with Python. The nice way.
- ReactPy ★7957 - User interfaces in Python without Javascript
- Mesop ★5929 - a Python-based UI framework that allows you to rapidly build web apps like demos and internal apps.
- Panel ★5084 - The Powerful Data Exploration & Web App Framework for Python.
- Awesome Panel ★342.
- Flexx ★3313 - Write desktop and web apps in pure Python
- Django-Unicorn ★2473
- Reactor ★640 - Phoenix LiveView but for Django
- Tetra ★578 - a full stack component framework for Django using Alpine.js
- Starfyre ★548 - A Python Framework for writing Reactive Front-End Applications.
- Django-Suckpuppet ★451 - Build reactive applications with the django tooling you already know and love.
- Flask-Meld ★316 - a library to provide server rendered templates over websockets for Flask applications to build reactive components without Javascript.
- Reacton ★303 - A pure Python port of React for ipywidgets.
- enaml-web ★103 - Build interactive websites with enaml
- microdot ★1614 - The impossibly small web framework for Python and MicroPython.
- MicroWebSrv2 ★679 - The last micro web server for IoTs (MicroPython) or large servers (CPython), that supports WebSocket, routes, template engine and with really optimized architecture (mem allocations, async I/Os).
- MicroWebSrv ★653 - A micro HTTP web server that supports WebSockets, HTML/Python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32).
- tinyweb ★261 - Simple and lightweight HTTP async server for MicroPython.
- micropyserver ★136 - MicroPyServer is a simple HTTP server for MicroPython projects.
- micropython-nanoweb ★111 - Full async MicroPython web server with small memory footprint.
- micropython-urouter ★51 - A lightweight HTTP request routing processing support library based on MicroPython. The previous name was micro-route.
- gunicorn ★10002 - 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
- uvicorn ★8933 - Uvicorn is an ASGI web server implementation for Python.
- uwsgi ★3485 - application server container, implement application server interfaces for various languages and platforms: WSGI, PSGI, Rack, Lua WSAPI, CGI, PHP, Go.
- Granian ★3203 - A Rust HTTP server for Python applications.
- bjoern ★3019 - A screamingly fast Python 2/3 WSGI server written in C.
- daphne ★2462 - A HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels.
- Waitress ★1484 - A pure-Python WSGI server, it's simple, lightweight, and production-ready. It's often used with Pyramid and other WSGI applications.
- hypercorn ★1246 - ASGI server based on the sans-io hyper, h11, h2, and wsproto libraries.
See the "Frameworks and Libraries" section in the Python Developers Survey 2020.
- Update 2021: https://lp.jetbrains.com/python-developers-survey-2021/#FrameworksLibraries
- Update 2022: https://lp.jetbrains.com/python-developers-survey-2022/#FrameworksLibraries
- Update 2023: https://lp.jetbrains.com/python-developers-survey-2023/#FrameworksLibraries
- Hello to the World in 8 Web Frameworks (Micro, Batteries Included & Async) - presentation by Aaron Bassett at PyCon AU (2018)
- Awesome Python has some web frameworks, in two sections: Web Frameworks and RESTful API but it's not very thorough.