# Open-source Python web frameworks

18 open-source Python web frameworks rated against public privacy criteria.

1. [Bottle](https://privacyratings.com/python-frameworks/bottle/): B (80/100). Single-file micro web framework for Python with no dependencies other than the standard library.
2. [Django](https://privacyratings.com/python-frameworks/django/): B (80/100). Batteries-included Python web framework with an ORM, admin interface, templates and authentication.
3. [Django REST framework](https://privacyratings.com/python-frameworks/django-rest-framework/): B (80/100). Toolkit for building web APIs with Django, providing serializers, viewsets, authentication, permissions and a browsable API.
4. [FastAPI](https://privacyratings.com/python-frameworks/fastapi/): B (80/100). Python framework for building APIs with type hints, based on Starlette and Pydantic, with automatic request validation and OpenAPI documentation.
5. [Litestar](https://privacyratings.com/python-frameworks/litestar/): B (80/100). ASGI web framework for Python for building APIs, with dependency injection, data validation, ORM integration and OpenAPI documentation.
6. [Masonite](https://privacyratings.com/python-frameworks/masonite/): B (80/100). Batteries-included Python web framework with an ORM, queues, mail, notifications and task scheduling, built around a service container.
7. [NiceGUI](https://privacyratings.com/python-frameworks/nicegui/): B (80/100). Python framework for building web-based user interfaces that run in the browser or as a desktop app.
8. [Sanic](https://privacyratings.com/python-frameworks/sanic/): B (80/100). Asynchronous Python web server and framework built on asyncio.
9. [Tornado](https://privacyratings.com/python-frameworks/tornado/): B (80/100). Python web framework and asynchronous networking library, suited to long polling, WebSockets and other long-lived connections.
10. [web2py](https://privacyratings.com/python-frameworks/web2py/): B (80/100). Full-stack Python web framework with a database abstraction layer, a web-based development interface and security defaults, designed to run without installation.
11. [Falcon](https://privacyratings.com/python-frameworks/falcon/): C (70/100). Minimal Python framework for building REST APIs and microservices, supporting both WSGI and ASGI.
12. [Flask](https://privacyratings.com/python-frameworks/flask/): C (70/100). Lightweight WSGI web framework for Python, built on Werkzeug and Jinja, that leaves databases and other components to extensions.
13. [Gradio](https://privacyratings.com/python-frameworks/gradio/): C (70/100). Python library from Hugging Face for building web interfaces and demos for machine learning models and other Python functions.
14. [Quart](https://privacyratings.com/python-frameworks/quart/): C (70/100). Asynchronous Python web framework with the Flask API, built on ASGI.
15. [Starlette](https://privacyratings.com/python-frameworks/starlette/): D (50/100). Lightweight ASGI toolkit and framework for building asynchronous web services in Python.
16. [Streamlit](https://privacyratings.com/python-frameworks/streamlit/): D (50/100). Python framework from Snowflake for turning data scripts into interactive web apps and dashboards.
17. [Pyramid](https://privacyratings.com/python-frameworks/pyramid/): D (40/100). Python web framework from the Pylons Project that scales from single-file apps to large applications, with a choice of templating and database layers.
18. [Reflex](https://privacyratings.com/python-frameworks/reflex/): D (40/100). Framework for building full-stack web apps in pure Python, which compiles the frontend to a React app.

Source: https://privacyratings.com/open-source/python-frameworks/
