Reference site: Comparison of 4 types of Python web frameworks
A web framework is a pre-made function that is frequently used in web development, and as the name "frame work" suggests, it is used as a framework or frame. By using the framework ・ The amount of description is reduced ・ The way of writing programming can be unified to some extent. ・ It will be easier to gather human resources, such as "people who have experience with the XX framework". There are merits such as. In web development, it is very common to develop using this framework.
Here are four Python web frameworks, including Django and Bottle.
django
Django is a web framework developed by "World Online", the web development division of Lawrence Journal-World in the United States. Published in 2005, version 1.0 was released in September 2008, and has been actively developed since then. Currently, the stable version is 1.9 and the latest is 1.10.
It is one of the most popular Python web frameworks and is often used to build medium and larger web applications. It's Django that you'll see most in job vacancies.
Often used for web frameworks ・ URL dispatcher ・ O / R mapper ・ Template engine Django has a lot of features, including, and is described as a "full stack framework." In addition, the function to automatically generate the management screen became a hot topic when it was first released. It is a framework that you can see in various places, such as being included as standard in GAE.
View Django's official website
Bottle
It's the simplest and lightest Python web framework. It consists of only one file called "bottle.py". Therefore, deploying to the server is also very easy. Also, because of the simplicity of one file, some people use it for study purposes while looking at the source code, and of course there are also people who use this Bottle to create practical Web applications.
View Bottle's official website
Flask
It is the most popular web framework among lightweight frameworks. Suitable for building small and medium-sized web applications. Flask originally started as an April Fool's joke in 2010, but it's a framework with an interesting history that the author, Australian Armin Ronacher, responded to the enthusiastic response and made it a real framework. The name Flask was named after a word game for Bottle.
It's called a "micro web framework," and as the name implies, it's lightweight and doesn't have much to remember. It is also possible to write the entire Web application in one .py file, which makes it possible to quickly build a small site.
Tornado
Tornado is a web framework developed by FriendFeed that was absorbed by Facebook and then open sourced. It has enough functions as a web framework, but it also has an aspect as a web server. Since "WebSocket" that communicates in real time is supported, it is popular for that purpose and as an alternative method in Python for the asynchronous Web server "node.js". It is typically used with nginx instead of Apache, and is fast enough to overwhelm other web frameworks when it comes to delivering static files.
Recommended Posts