Life is too short , Learn quickly Python!
Tidy up Python Common web site development libraries in ( Hereinafter referred to as" :Web frame ), For your reference .
A:Web The framework is mainly used for website development . Developers are building on Web The framework implements its own business logic .Web The framework implements many functions , It provides a set of general methods for realizing business logic .
A: Use Web frame , Many functions outside the business logic do not need to be improved by themselves , Instead, you can use the existing functions of the framework .Web The framework makes it possible to When developing websites , Reduced workload .
A:Web The framework is mainly used for website development , It can realize the interaction of data and the improvement of business functions . Use Web Framework for When developing websites , Data caching in progress 、 Database access 、 Data security verification, etc , You don't need to re implement it yourself , Instead, write the code related to business logic into the framework .
Library sorting is based on the number of users and the activity of documents , It is recommended that you use the top ranked framework , Because they are more fully documented , Technology accumulation should be more , The community is more prosperous , Get better support , In this way, when you encounter problems you can't solve , Solutions that can be found faster and more efficiently .
Officer, network :https://github.com/django/django.git
optimal spot : It's a high level Python Web Development framework , It is characterized by rapid development 、 Less code 、 High scalability .Django use MTV(Model、Template、View) Model organization resources , The framework has rich functions , The template extension can be selected at most . For professionals ,Django Be worthy of Python Number one Web Development framework .
Lack of spot : Including some functional modules that are not required by lightweight applications , Not as good as Flask Light . Over encapsulating many classes and methods , It's easier to use it directly , But it's hard to change . Compared with C,C++ performance ,Djang Low performance . The template realizes the complete separation of code and style , It is not allowed to appear in the template Python Code , Not enough flexibility . In addition, the learning curve is also relatively steep .
Officer, network :https://flask.palletsprojects.com/en/2.0.x/
optimal spot :Flask It's a Python Web Developed micro framework , Strictly speaking , It only provides Web Server support , Does not provide full stack development support . However ,Flask Very light weight 、 It's simple , Build... Based on it Web The system counts in minutes , It is especially suitable for the development of small and micro prototype system . Spend less time 、 Generate available systems , It's a very cost-effective choice .
Lack of spot : For large website development , You need to design the rules of routing mapping , Otherwise, it will lead to code confusion . For beginners , Easy to create with low-quality code “ Bad web Applications ”.
Officer, network : https://trypyramid.com/
optimal spot : It is a highly scalable and flexible Python Web Development framework . It's easy to get started , It is more suitable for medium-sized scenes that are designed while developing .Pyramid Does not provide an absolutely strict Framework Definition , The development can be expanded according to the requirements , Very friendly to high-level programmers .
Lack of spot : Not well known in China , Advanced usage requires inspiration from reading the source code . By default Chameleon Templates , Flexibility is not a factor .
Officer, network :https://webpy.org/
optimal spot : As its name suggests ,web.py Is an adoption Python As a development language Web frame , Simple and powerful . Russia ranks first Yandex Search engines are developed based on this framework ,Guido van Rossum Think this is the best Python Web frame , Do you need to say anything else ? There are facts to testify 、 There is Daniel's approval , To use! !
Lack of spot :Web.py Not as consistent with... As other frameworks Python 3 Latest state of compatibility . This not only means a lack of support for asynchronous Syntax , It also means missing errors for deprecated functions . Besides , It is unclear whether defenders have plans to Python 2 Maintain... After reaching the end of its support life cycle Web.py Latest status of .
Officer, network :https://www.tornadoweb.org/en/stable/
optimal spot :Tornado It is based on asynchronous network function library Web Development framework , therefore , It can support tens of thousands of open connections ,Web Efficient and stable service . so ,Tornado Suitable for high concurrency scenarios Web System , The development process needs to adopt Tornado The framework provided , Poor flexibility , It's not too late to consider using it after determining the scenario .
Lack of spot :Tornado 5.0 Improved communication with Python Integration of native asynchronous functions . So... Is no longer supported Python 3.3, also Python 3.5 Users must use Python 3.5.2 Or later .Tornado 6.0 Will need Python 3.5 And higher , And will give up completely Python 2 Support .
Officer, network :https://www.turbogears.org/
optimal spot :TurboGears The latest version Attempt to resolve TurboGears Original version 、Django、Rails And other frame defects , It supports multiple databases 、JavaScript Toolset 、 Various data exchange formats, etc , Of course , Its development is very efficient , It's very scalable . How does it relate to Django Which is better? ? It's hard to say ,Django The community is more active and perhaps more important .
Lack of spot :TurboGears Some of the disadvantages of include the basic management function , Fewer third-party applications and only rudimentary documentation .TurboGears A major challenge is its overwhelming . Because other components of it provide unlimited flexibility , When trying to decide which path to complete a task, it is too complex .
Each framework has certain advantages and disadvantages , But it can not be ruled out that it is really easy to use , Using a good framework can make us write code much faster , So I want to learn Python Also understand the use of the framework , Go to study !