cherrypy / cheetah vs twisted / nevow [英] cherrypy/cheetah vs twisted/nevow

查看:52
本文介绍了cherrypy / cheetah vs twisted / nevow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,我正在寻找最好的框架

来执行此操作。我知道这是一个老问题,我已阅读清单

档案和网上的几个比较页面。我和一些人一起玩了两次,我已经把我的选择减少到了两个非常不同的
框架:cherrypy + cheetah和twisted + nevow。


我用猎豹用樱桃树写原型,我非常喜欢它。
非常多。我对开发的速度印象非常深刻,而且b
似乎符合我的想法。在此之前,我使用了网络软件,但是

cherrypy更简单,更容易,我想要的东西也很好。

Cherrypy目前正在重新设计。 ''旧''

版本不再开发,新版本只有第一个

alpha版本。虽然新版本看起来很有前途,但我不确定

它很快就会投入生产。我当然可以

只使用旧版本,这是稳定的。


由于我的疑问,我去找替代品,并且跌跌撞撞

on nevow。我现在绝对认为这是应该开发Web应用程序

的方式。我喜欢ui和代码分离的方式,我喜欢

无形,而且livepage看起来很有前途。但是,它仍然是
beta,据说相当难以使​​用。


应用程序应该有第一个版本大约六个完成

个月。安全非常重要。该应用程序的用户完全信任

,因此在这方面最重要的是身份验证

(当然还有加密),我想。如果需要,我可以自己编码这个

。这是一个相对较小的应用程序,最多只有几千个b $ b用户,他们不会使用该应用程序,更不用说同时发送

请求了。目前我不希望使用太多的扭曲'很好的可能性。


任何关于你会做什么的想法,都会非常感激。


Charlotte。

I am developing a web application and am looking for the best framework
to do this in. I know this is an old question, and I have read the list
archives and a couple of comparison pages on the web. I played around
with some, and I have reduced my choices to two very different
frameworks: cherrypy+cheetah and twisted+nevow.

I am writing the prototype in cherrypy with cheetah, and I like it
very much. I am very impressed with the speed of development, and
cherrypy seems to fit the way I think. Before this I used webware, but
cherrypy is simpler and easier and does the things I want very well.
Cherrypy is being completely redesigned at the moment. The ''old''
version is no longer developed, the new version just had the first
alpha release. While the new version looks promising, I am uncertain
that it will be ready for production use very shortly. I can of course
just use the old version, which is stable.

Because of my doubt, I went looking for alternatives, and stumbled
upon nevow. I now absolutely think this is the way a web application
should be developed. I like the way ui and code is seperated, I love
formless, and livepage looks very promising. However, it is still
beta, and reportedly rather difficult to use.

The application should have a first version finished in about six
months. Security is very important. The users of the application are
fully trusted, so the most important in this regard is authentication
(and encryption, of course), I think. I could, if needed, just code this
myself. It is a relatively small application, at most a few thousand
users, who will not be using the application, much less sending
requests, at the same time. At the moment I do not expect to use much
of twisted''s great possibilities.

Any ideas on what you would do, would be most appreciated.

Charlotte.

推荐答案

2004年11月1日09:36:59 GMT,Charlotte< ch*******@donotspam.invalid>写道:
On 01 Nov 2004 09:36:59 GMT, Charlotte <ch*******@donotspam.invalid> wrote:
我正在开发一个Web应用程序,我正在寻找最好的框架
来做到这一点。我知道这是一个老问题,我已阅读清单
档案和网上的几个比较页面。我和其他人一起玩了
,我已经把选择减少到了两个截然不同的框架:cherrypy + cheetah和twisted + nevow。

我正在用cherrypy编写原型猎豹,我非常喜欢它。我对开发速度印象非常深刻,而且我认为它似乎符合我的想法。在此之前,我使用了网络软件,但是更加简单易用,并且做了我想要的事情。
目前正在完全重新设计Cherrypy。 旧版本不再开发,新版本刚刚发布了第一个版本。虽然新版本看起来很有希望,但我不确定它很快就会为生产使用做好准备。我当然可以使用旧版本,这是稳定的。


嗨!这就是让我迷上CherryPy的原因:简单地说它是简单的,而且它看起来很明显使用。至于

重新设计,我已经在使用CP2 alpha项目来完成我的一些项目。它们都不是生命危急,而且我没有使用

所有功能,但它现在对我来说似乎非常稳定。主要的不同之处在于CP2现在是''纯python'',没有中间的
编译步骤,这使得使用起来比以前更加自然。 />
由于我的疑问,我一直在寻找替代品,并且在nevow上发现了。我现在绝对认为这是应该开发Web应用程序的方式。我喜欢ui和代码分离的方式,我喜欢
无形,而且livepage看起来非常有前途。但是,它仍然是测试版,据说相当难以使​​用。


我还没学习nevow,但我越来越感兴趣了。我b $ b有自己的分离方法;我用来考虑第三个实体,结构,因为它独立于代码& UI。

结构是常见的部分;它是胶水 ui和代码之间;并且

它是设计的第一部分。我还在尝试这个

的概念。对于我到目前为止所读到的内容,nevow似乎遵循类似的

方法,尽管我没有看到任何对结构的引用。作为

设计中的第三个元素。

应用程序的第一个版本应该在大约六个月内完成。安全非常重要。该应用程序的用户完全信任,因此在这方面最重要的是身份验证(当然还有加密),我想。如果需要,我可以自己编码。这是一个相对较小的应用程序,最多只有几千个用户,他们不会使用该应用程序,更不用说同时发送请求了。目前我不希望使用很多扭曲的可能性。
I am developing a web application and am looking for the best framework
to do this in. I know this is an old question, and I have read the list
archives and a couple of comparison pages on the web. I played around
with some, and I have reduced my choices to two very different
frameworks: cherrypy+cheetah and twisted+nevow.

I am writing the prototype in cherrypy with cheetah, and I like it
very much. I am very impressed with the speed of development, and
cherrypy seems to fit the way I think. Before this I used webware, but
cherrypy is simpler and easier and does the things I want very well.
Cherrypy is being completely redesigned at the moment. The ''old''
version is no longer developed, the new version just had the first
alpha release. While the new version looks promising, I am uncertain
that it will be ready for production use very shortly. I can of course
just use the old version, which is stable.
Hi! That was the same reason that got me hooked on CherryPy: it''s
simplicity, and the fact that it seemed so ''obvious'' to use. As for
the redesign, I''m already using the CP2 alpha project for a few
projects of mine. None of them is ''life critical'', and I''m not using
all features, but it seems very stable to me right now. The main
difference is that CP2 is now ''pure python'', with no intermediate
compilation step, which makes it even more natural to use than before.
Because of my doubt, I went looking for alternatives, and stumbled
upon nevow. I now absolutely think this is the way a web application
should be developed. I like the way ui and code is seperated, I love
formless, and livepage looks very promising. However, it is still
beta, and reportedly rather difficult to use.
I''m yet to study nevow, but I''m getting more and more interested. I
have my own approach to separation; I use to think about a third
entity, "structure", as being independent from code & ui. The
structure is the common part; it''s the "glue" between ui and code; and
it''s the first part to be designed. I''m still experimenting with this
concept. For what I have read so far, nevow seems to follow a similar
approach, although I haven''t seen any reference to "structure" as a
third element in the design anywhere.
The application should have a first version finished in about six
months. Security is very important. The users of the application are
fully trusted, so the most important in this regard is authentication
(and encryption, of course), I think. I could, if needed, just code this
myself. It is a relatively small application, at most a few thousand
users, who will not be using the application, much less sending
requests, at the same time. At the moment I do not expect to use much
of twisted''s great possibilities.




据我所知,扭曲是一个巨大的野兽,并且强迫你完全采用不同的编程范式。有一个wsgi网关用于扭曲

的工作,这可能会使纯粹的web开发更简单,因为它会隐藏扭曲异步的一些固有复杂性

设计。为了我自己的需要,我仍然喜欢和CherryPy在一起。


-

Carlos Ribeiro

Consultoria em Projetos

博客: http://rascunhosrotos.blogspot.com
博客: http://pythonnotes.blogspot.com

邮件: ca********@gmail.com

邮件: ca********@yahoo.com



For what I know, twisted is a huge beast, and forces you to a totally
different programming paradigm. There is a wsgi gateway for twisted in
the works, and that may make things simpler for pure web development,
as it will hide some of the inherent complexity of twisted async
design. For my own needs, I still prefer to stay with CherryPy.

--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: ca********@gmail.com
mail: ca********@yahoo.com


2004年11月1日星期一12:39:24 -0200,Carlos Ribeiro写道:
On Mon, 01 Nov 2004 12:39:24 -0200, Carlos Ribeiro wrote:
我还没学习nevow,但是我越来越感兴趣了。我有自己的分离方法;我用来考虑第三个实体,结构,因为它独立于代码& UI。
结构是共同的部分;它是胶水 ui和代码之间;这是设计的第一部分。我还在尝试这个概念。对于我到目前为止所读到的内容,nevow似乎遵循类似的方法,尽管我没有看到任何关于结构的提法。作为设计中的第三个元素。


你在Nevow所谓的结构是一个平坦的恕我直言。基本上:


来自XML / HTML文件Nevow构建了一个Stan Tree,这是一个更简单的DOM

实现(您可以提供自己的解析器实现/ DOM

构建器到Nevow,因为框架只关心最终的Stan树。)

然后,当用户连接到您的站点时,stan树被展平,表示

(用nevow-speaking)nevow直接遍历stan树返回

简单字符串并调整动态组件(指令,插槽,模式和

等等)知道如何提供

对象的html / xhtml版本。


所以适配器和stan应该像你的结构。

据我所知,扭曲是一个巨大的野兽,并迫使你完全不同的编程范式。有一个用于扭曲工作的wsgi网关,这可能会使纯粹的Web开发更简单,因为它会隐藏扭曲的异步设计的一些固有的复杂性。为了我自己的需要,我仍然愿意继续使用CherryPy。
I''m yet to study nevow, but I''m getting more and more interested. I
have my own approach to separation; I use to think about a third
entity, "structure", as being independent from code & ui. The
structure is the common part; it''s the "glue" between ui and code; and
it''s the first part to be designed. I''m still experimenting with this
concept. For what I have read so far, nevow seems to follow a similar
approach, although I haven''t seen any reference to "structure" as a
third element in the design anywhere.
What you call structure in Nevow is a flattener IMHO. Basically:

From a XML/HTML file Nevow builds a Stan Tree which is a simpler DOM
implementation (You can provide your own implementation of this parser/DOM
builder to Nevow, since the framework only cares about the resulting Stan Tree).
Then, when a user connects to your site, the stan tree is flattened, which means
(in nevow-speaking) that nevow iterates through the stan tree directly returning
simple strings and adapting dynamic components (directives, slots, patterns and
so on) to something that knows how to provide an html/xhtml version of the
object.

So the adapter and stan should act like your structure.
For what I know, twisted is a huge beast, and forces you to a totally
different programming paradigm. There is a wsgi gateway for twisted in
the works, and that may make things simpler for pure web development,
as it will hide some of the inherent complexity of twisted async
design. For my own needs, I still prefer to stay with CherryPy.




我实际上认为Nevow是第一个提供wsgi支持的Web工具包

内置。它也可以在没有Twisted的情况下使用,但也可以作为CGI使用。


-

Valentino Volonghi又名Dialtone

现在运行FreeBSD 5.3-STABLE

博客: http://vvolonghi.blogspot.com


Carlos Ribeiroaécrit:

(snip)
Carlos Ribeiro a écrit :
(snip)
我还没学习nevow,但我越来越感兴趣了。我有自己的分离方法;我用来考虑第三个实体,结构,因为它独立于代码& UI。
结构是共同的部分;它是胶水 ui和代码之间;并且它是第一个被设计的部分。
I''m yet to study nevow, but I''m getting more and more interested. I
have my own approach to separation; I use to think about a third
entity, "structure", as being independent from code & ui. The
structure is the common part; it''s the "glue" between ui and code; and
it''s the first part to be designed.




Err ......我可能错过了一些明显的东西,但这不是闻起来的气味喜欢

a好老的MVC? - )



Err... I may have missed something obvious, but doesn''t this smells like
a good old MVC ?-)


这篇关于cherrypy / cheetah vs twisted / nevow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆