Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Five mainstream frameworks of Python web

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Python web five mainstream frameworks, I believe that many inexperienced people can do nothing about it, for this reason this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.

We all know that the popular Python language is widely used in Web development, game development, artificial intelligence, cloud computing development, big data development, data analysis, scientific calculation, crawler, automatic operation and maintenance, automatic testing and other fields. In fact, the most convenient application of Python in various fields is to use frameworks, which can enable programmers to realize custom functions with less code and focus more on business logic. It's easier and easier!

Since Python web is so powerful, it is necessary for us to understand the five major frameworks of Python mainstream in 2018:

1.Django

Django is an open-source Web application framework written in Python that supports many database engines, makes Web development fast and extensible, and is constantly updated to match the latest Python versions.

2.Flask

Flask is a lightweight Web application framework written in Python. Based on Werkzeug WSGI toolkit and Jinja2 template engine. Use the BSD license.

Flask is also known as a "microframework" because it uses a simple core with extensions to add additional functionality. Flask has no default database or form validation tools. Flask, however, retains the flexibility to augment these features with Flask-extensions: ORM, form validation tools, file uploads, various open authentication technologies.

3.Web2py

Web2py is a free, open-source Web framework written in Python, designed for agile and rapid development of Web applications with fast, scalable, secure, and portable database-driven applications that follow the LGPLv3 open source protocol.

Web2py provides a one-stop solution, the whole development process can be carried out on the browser, providing the Web version of online development, HTML template writing, static file upload, database writing functions. Other features include logging and an automated admin interface.

4.Tornado

Tornado is a Web server(this article does not elaborate), but also a micro-framework like web.py. As a framework, Tornado's idea mainly comes from Web.py. You can also see Tornado's big brother Bret Taylor's words on the homepage of Web.py's website (he said that FriendFeed's framework and Tornado can be regarded as one thing):

"[web.py inspired the] Web framework we use at FriendFeed [and] the webapp framework that ships with App Engine…"

Because of this relationship, Tornado will not be discussed separately later.

5.CherryPy

CherryPy is a simple and very useful Web framework for Python, whose main purpose is to connect Web servers with Python code in as few operations as possible, and its features include built-in analysis capabilities, flexible plug-in system, and the ability to run multiple HTTP servers at once, which can be used with the latest versions of Python, Jython, and Android.

Finally, the error of frame selection

When it comes to choosing a framework, it is easy for many people to fall into the trap of not knowing which framework is best-there is no best framework, only the one that works best for you and your team. Programming language choice is also a truth, your team Python is the most familiar with Python, if the most familiar with Ruby that is good with Ruby, programming languages, frameworks are just tools, can be more, fast, good, provincial work is a good thing.

Pay too much attention to performance-in fact, most people do not need to care too much about the performance of the framework, because the website you develop is simply a small station, there are not many websites that can go up to 10,000 IP, and there are very few websites that go up to 100,000. It doesn't make much sense to talk about performance without a certain amount of traffic, because your CPU and memory are always idle.

After reading the above content, do you have the method of Python web five mainstream frameworks? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report