Python web framework Django vs Pyramid vs Flask December 2015

Making the wrong choice in the Python web framework is very difficult, Pyramid's introduction page /introduction.html#what-makes-pyramid-unique). As a result of my research, I came to the conclusion that this is exactly the case. When I personally built a website in December 2015, I was at a loss as to which web framework to build. This article is a memorandum for consideration at that time.

speed

Speed comparison with everyone's favorite TechEmpower Web Framework Benchmarks. At that point, django, which was seriously profound, was out of consideration because I wanted to reduce server costs and operating costs anyway. The bottle is still fast.

スクリーンショット 2015-12-11 12.01.04.png

Web framework Yes / No chart

I summarized it in the Yes / No chart. Session is not required because the login function is not built. I decided to build it with Flask, which is simple, has low learning cost, and operates at high speed.

スクリーンショット 2015-12-11 11.28.40.png

Other considerations

Information that was considered but did not contribute to the selection. Making the wrong choice in Python's web framework is still difficult

Python3 compatible

All frameworks work with 3 systems.

Server construction in production

Python + nginx + uWsgi + WebFramework, any framework works. Considering only the speed, it seems that Tornado should be used for the Web server. (Unverified)

O / R mapper

Web framework O/R mapper
Django Original ORM
Pyramid SQLAlchemy
Flask Supports SQLAlchemy

reference

Choosing a Web Framework: Django, Flask, or Pyramid Let's use the convenient and super powerful WSGI server uWSGI Add Star

Recommended Posts

Python web framework Django vs Pyramid vs Flask December 2015
Django python web framework
Python Web framework performance comparison (Django, Flask, responder, FastAPI, japronto)
Web application with Python + Flask ② ③
Web application with Python + Flask ④
Try using the Python web framework Django (2) --Look at setting.py
Install Python framework django using pip
Speaking of python (3) web framework, it looks like django or flask, but bottle is also good.
Try using the web application framework Flask
Try using the Python web framework Django (1)-From installation to server startup
Easy web app with Python + Flask + Heroku
Let's make a web framework with Python! (1)
Let's make a web framework with Python! (2)
I compared the speed of go language web framework echo and python web framework flask
Python local development environment construction template [Flask / Django / Jupyter with Docker + VS Code]
[Amateur remarks] Raspberry Pi 3, Wordpress vs Raspberry Pi 3, python, Django
Vienna with Python + Flask web app on Jenkins
Introduction to Tornado (1): Python web framework started with Tornado
Try using the Python web framework Tornado Part 1
Run Python web apps on NGINX + NGINX Unit + Flask
Launch a web server with Python and Flask
Try using the Python web framework Tornado Part 2
[Python] Beginners troubleshoot while studying Django web applications
Python Django Tutorial (5)
Python Django Tutorial (2)
Python Django Tutorial (8)
Python Django Tutorial (6)
Python Django Tutorial (7)
Python Django Tutorial (1)
Python Django tutorial tutorial
Python Django Tutorial (3)
Python Django Tutorial (4)
Deploy a Python 3.6 / Django / Postgres web app on Azure
2014 Web Application Framework Trends (PHP / Java / Ruby / Python / Perl)
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 7-
(Python) Try to develop a web application using Django
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 1-
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 1 ~
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 2-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 0-
[Ruby vs Python] Benchmark comparison between Rails and Flask
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 5-
Parse and visualize JSON (Web application ⑤ with Python + Flask)
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 6-
Web application made with Python3.4 + Django (Part.1 Environment construction)
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 2 ~
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 4-
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 3-
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 3 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 4 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 5 ~