Python网络框架混淆

2024-10-01 07:47:44 发布

您现在位置:Python中文网/ 问答频道 /正文

有人能给我解释一下当前的pythonwebframworks是如何组合在一起的吗?在

我听说过的三个是奇瑞比,涡轮齿轮和塔架。但是我很困惑,因为TurboGears似乎使用CherryPy作为“控制器”(尽管CherryPy本身不是一个框架吗?),而TurbGears 2将建在塔架的顶部(我原以为是这样做的?)。在


Tags: 框架turbogears控制器涡轮齿轮cherrypyturbgearspythonwebframworks
3条回答

CherryPy不是一个全栈的web框架(比如Django),事实上它不是一个web框架,而是一个HTTP框架。使用CherryPy编写web应用程序非常类似于用Python编写常规的面向对象应用程序。 另外,CherryPy有它自己的可用于生产的wsgiweb服务器,它也可以用于使用其他框架编写的应用程序,因此将CherryPy作为一个框架存在混乱。在

尝试一下web2py。它是点击式的(您甚至不需要安装Python,附带)。您可以使用web界面进行开发,几乎可以在任何地方部署,包括iPhone、Oracle和googleappengine。在尝试web2py之前,请尝试安装其他一些Python框架,您将更加欣赏它。在

当然还有更多。在

这是一个全面的清单和细节!在

Web Frameworks for Python

从以上链接摘录:

Popular Full-Stack Frameworks

A web application may use a combination of a base HTTP application server, a storage mechanism such as a database, a template engine, a request dispatcher, an authentication module and an AJAX toolkit. These can be individual components or be provided together in a high-level framework.

These are the most popular high-level frameworks. Many of them include components listed on the WebComponents page.

Django (1.0 Released 2008-09-03) a high-level Python Web framework that encourages rapid development and clean, pragmatic design

Pylons (0.9.6.2 Released 2008-05-28) a lightweight Web framework emphasizing flexibility and rapid development. It combines the very best ideas from the worlds of Ruby, Python and Perl, providing a structured but extremely flexible Python Web framework. It's also one of the first projects to leverage the emerging WSGI standard, which allows extensive re-use and flexibility but only if you need it. Out of the box, Pylons aims to make Web development fast, flexible and easy. Pylons is built on top of Paste (see below).

TurboGears (1.0.4.4 Released 2008-03-07) the rapid Web development megaframework you've been looking for. Combines CherryPy, Kid, SQLObject and MochiKit. After reviewing the website check out: QuickStart Manual

web2py (currently version 1.43) Everything in one package with no dependencies. Development, deployment, debugging, testing, database administration and maintenance of applications can be done via the provided web interface. web2py has no configuration files, requires no installation, can run off a USB drive. web2py uses Python for the Model, the Views and the Controllers, has a built-in ticketing system to manage errors, an internationalization engine, works with MySQL, PostgreSQL, SQLite , Oracle, MSSQL and the Google App Engine via an ORM abstraction layer. web2py includes libraries to handle HTML/XML, RSS, ATOM, CSV, RTF, JSON, AJAX, XMLRPC, WIKI markup. Production ready, capable of upload/download of very large files, and always backward compatible.

Grok (0.13 Released 2008-06-23) is built on the existing Zope 3 libraries, but aims to provide an easier learning curve and a more agile development experience. It does this by placing an emphasis on convention over configuration and DRY (Don't Repeat Yourself).

Zope (2.10.4 Released 2007-07-04, 3.3.1 Released 2007-01-14, Zope 3.4.0c1 Released 2008-01-31) Being the grandaddy of Python web frameworks, Zope has grown into a family of frameworks over the years. Zope 1 was released in 1999. Zope 2 is both a web framework and a general purpose application server, today it is primarily used by ContentManagementSystems. Zope 3 is both a standalone framework and a collection of related libraries, which are also included with newer releases of Zope 2. All of the Zope frameworks include the ZODB, an object database for Python.

相关问题 更多 >