Open-source Python web frameworks
18 Python web frameworks whose code is public under an OSI-approved license, rated for privacy with evidence. Picks first, then by score.
Bottle Grade B
Single-file micro web framework for Python with no dependencies other than the standard library.
MIT-licensed. Source code
Django Grade B
Batteries-included Python web framework with an ORM, admin interface, templates and authentication.
BSD-3-Clause licensed. Source code
Django REST framework Grade B
Toolkit for building web APIs with Django, providing serializers, viewsets, authentication, permissions and a browsable API.
BSD-3-Clause-licensed. Source code
FastAPI Grade B
Python framework for building APIs with type hints, based on Starlette and Pydantic, with automatic request validation and OpenAPI documentation.
MIT-licensed. Source code
Litestar Grade B
ASGI web framework for Python for building APIs, with dependency injection, data validation, ORM integration and OpenAPI documentation.
MIT-licensed. Source code
Masonite Grade B
Batteries-included Python web framework with an ORM, queues, mail, notifications and task scheduling, built around a service container.
MIT-licensed. Source code
NiceGUI Grade B
Python framework for building web-based user interfaces that run in the browser or as a desktop app.
MIT-licensed. Source code
Sanic Grade B
Asynchronous Python web server and framework built on asyncio.
MIT-licensed. Source code
Tornado Grade B
Python web framework and asynchronous networking library, suited to long polling, WebSockets and other long-lived connections.
Apache-2.0 licensed. Source code
web2py Grade B
Full-stack Python web framework with a database abstraction layer, a web-based development interface and security defaults, designed to run without installation.
LGPL-3.0-licensed. Source code
Falcon Grade C
Minimal Python framework for building REST APIs and microservices, supporting both WSGI and ASGI.
Apache-2.0 licensed. Source code
Flask Grade C
Lightweight WSGI web framework for Python, built on Werkzeug and Jinja, that leaves databases and other components to extensions.
BSD-3-Clause licensed. Source code
Gradio Grade C
Python library from Hugging Face for building web interfaces and demos for machine learning models and other Python functions.
Apache-2.0 licensed. Source code
Quart Grade C
Asynchronous Python web framework with the Flask API, built on ASGI.
MIT-licensed. Source code
Starlette Grade D
Lightweight ASGI toolkit and framework for building asynchronous web services in Python.
BSD-3-Clause licensed. Source code
Streamlit Grade D
Python framework from Snowflake for turning data scripts into interactive web apps and dashboards.
Apache-2.0 licensed. Source code
Pyramid Grade D
Python web framework from the Pylons Project that scales from single-file apps to large applications, with a choice of templating and database layers.
Licensed under the BSD-derived Repoze Public License. Source code
Reflex Grade D
Framework for building full-stack web apps in pure Python, which compiles the frontend to a React app.
Apache-2.0 licensed. Source code
Compare all 18 Python web frameworks, open source or not.