5. common PythonWeb frameworks

Source: Internet
Author: User
Tags zend framework
There are not many people playing with so many Python frameworks one by one. frankly speaking, I have only used three of them for development projects, and some others have been slightly touched, so I can only talk about it here. I welcome anyone who knows how to add so many Python frameworks. there are not many people who can play them one by one. to be honest, I have only used three of them to develop projects, some others have been in touch, so we can only talk about it here. thank you for your understanding.

Speaking of the Web Framework, the world of Ruby Rails is a uniform world, while Python is a colorful world. for a variety of micro-frameworks and frameworks, see:

Wiki.python.org/moin/WebFrameworks

Although PHP, another major scripting language, also has many frameworks, it is far less exaggerated than Python. it is precisely because there are too many Python Web frameworks, in the Python community, there is always a topic about the advantages and disadvantages of the Python framework. The discussion may take up to three to five years.

There are not many people playing with so many Python frameworks one by one. frankly speaking, I have only used three of them for development projects, and some others have been slightly touched, so we can only talk about it here. thank you for your understanding.

Django

Bottle and Flask are representative of the Python framework of the new generation. it is interesting that they all adopt the decorator method to configure URL routing, such:

from bottle import route, run @route('/:name')def index(name='World'):  return 'Hello %s!' % name run(host='localhost', port=8080)

Like web. py, Bottle and Flask are all very simple. Bottle and even all the code are in that two thousand-line. py file. In addition, like Pylons, Flask can be well combined with Jinja2 and SQLAlchemy.

However, at present, there are few successful cases, either Bottle or Flask.

Quixote

Quixote is the largest Chinese website "doubannet" developed using Python. I simply flipped through the source code, did not do research, did not post comments, and experienced to add. I was just thinking that if douban.com is handed over to the present for development, there should be more options.

Others (web2py, uliweb, Karrigell, Werkzeug ...)

Finally, misunderstandings about framework selection

With regard to the choice of frameworks, many people may easily fall into the following two misunderstandings:

1. which framework is the best? there is no best framework in the world. only the framework that best suits you and your team. Programming language selection is also a truth. your team's Python is the most familiar with Python. if you are familiar with Ruby, you should use Ruby. the programming language and framework are only tools, being able, fast, good, and saving is good.

2. focusing too much on performance-in fact, most people do not have to worry too much about the performance of the framework, because the website you develop is basically a small site, and there are not many websites with 10 thousand IP addresses, there are very few of the top 0.1 million. It doesn't make much sense to talk about performance without a certain amount of traffic, because your CPU and memory are always idle. In addition, languages and frameworks are generally not performance bottlenecks, and performance problems most often occur in database access and file read/write. PHP's Zend Framework is notoriously slow, but Zend Framework also has many websites, such as digg.com. it is often said that Ruby and Rails with performance problems, can I still develop twitter? In addition, the current hardware and bandwidth costs are actually very low. especially with the cloud computing platform, the labor cost is the most expensive. without tens of thousands of IP addresses, you don't have to worry too much about performance issues, when the traffic goes up, it takes some time to buy some server space, which can solve performance problems easily and quickly.

Note: Some netizens have questioned that the saying "Quora is developed with Pylons" is not objective. Specifically, A website A is developed with B, it only means that the main or part of A is developed by B, so don't tangle with A and use C again.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.