Python论坛  - 讨论区

标题:[python-chinese] Python Web Framework Reviews

2005年07月20日 星期三 15:06

清风 paradise.qingfeng at gmail.com
Wed Jul 20 15:06:39 HKT 2005

http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html

这个地方总结归纳了一下Python现有的Web Frameworks,比较全了,大家可以看看:)

-- 
Blog:http://www.donews.net/changzheng

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月20日 星期三 15:15

Spirit Auding auding at gmail.com
Wed Jul 20 15:15:47 HKT 2005

老大,能不能帮忙贴过来,教育网我连接不上……等到花儿都歇了……


On 7/20/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> 
> http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html
> 
> 这个地方总结归纳了一下Python现有的Web Frameworks,比较全了,大家可以看看:)
> 
> --
> Blog:http://www.donews.net/changzheng
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 


-- 
#############################################
# "your future depends on your dreams." so go to sleep.
# save water. shower with your girlfriend.
#
# Welcom2 : http//blog.csdn.net/auding1900/
#############################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050720/2b5a5ee1/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月20日 星期三 15:55

watchsun watchsun at gmail.com
Wed Jul 20 15:55:28 HKT 2005

Python based Web Frameworks
 
Python is programmer friendly. No wonder web frameworks abound and come all 
shapes and sizes. Below we attempt the impossible, we'll try to 
describe/characterize a few of them. 
What is a Python Web Framework? 

A environment that allows a programmer to execute python programs in 
response to browser based requests by a remote user. 

If you really must you might try to divide the frameworks into two main 
classes as follows:

   1. *embedded CGI frameworks* that need to be integrated with another 
   webserver and typically require support for long running processes such as 
   SCGI or mod_python. 
   2. *standalone application servers* that provide a webserver and 
   manage their own runtime environment 

What is NOT a Python Web Framework? 

I don't want no trouble here, but let me define what I mean: 

If the framework is also designed to be used independently outside the web 
realm, say it can be imported and ran as a console program that creates some 
sort of output, then it is not a web framework. It can still be an 
excellent, methodology independent data rendering approach that can be 
deployed in any web server. 
Reviews  *Zope - Generation Z <http://www.zope.org/>*   

This framework provides its own asynchronous webserver that just keeps on 
ticking. Out of the blue we uploaded a 1Gbyte file into a piece of code 
pasted from an upload recipe. Turns out that the zope internals noticed the 
humongous incoming size and switched the storage type to file and streamed 
it without any problems ... the upload took more than 2 hours (had a slow 
connection) but it worked out just fine ... color me impressed..

But after a few months of development I got to suspect that the rumor about 
a Z shaped learning curve has some truth to it. What does a Z shaped curve 
look like anyway?

*Strength:* Robust. Team oriented. You can finely tune the access rights to 
all parts of the server. Multiple levels of undo. All-in-one solution. 
*Weakness:* Not pythonic. In fact you can barely use python with it! Ad-hoc 
lookup rules, competing standards DTML vs ZPT. Can only be used with these 
two! The Z shaped thingy.
  *CherryPy - Easy As Pie <http://www.cherrypy.org/>*   

Here is my bet, you'll never ever see anything as simple and straightforward 
as writing web programs with the CherryPy application server. With a recipe 
like this everyone's a chef: 

import cherrypy, 
add any program, 
spice it with decorators
run it hot while stirring occasionally

*Strength:* Very-very straightforward! What could be more natural than 
collecting incoming form data as parameters of a python method?
*Weakness:* Just how robust is this thing? Some issues, like session data 
not being thread safe seem to point to work in progress (even at version 2.0?). 
Gets a lot of mileage out from the python BaseHTTPServer.
  *Django - Serious Business Funny Name* <http://www.djangoproject.com/>   

Out of the blue it comes, this embedded CGI framework no one has heard about 
... seems very cool but specifically oriented at content management. More 
specifically at storing, querying, retrieving and presenting text to the 
user. On the other hand aren't most websites just that? 

*Strength:* Specialized. If you have to deal with news, articles, and pesky 
reporters why would you be using anything else?
*Weakness:* Specialized. If you don't have to deal with news, articles, and 
pesky reporters what would you be using it for?
  *Snakelets - Resident Java 2 * <http://snakelets.sourceforge.net/>   

Simple to use, easy to install and run. Sweet "out of the box" experience. 
Nice admin interface. Cute logo. 

*Strength**:* Familiar concepts for Java Server people. 
*Weakness:* Aren't Java Server pages just a remake of the Microsoft ASP 
(Active server pages) standard that in turn was copied from a messed up 
printout of an old PHP page? Maybe they are not but it certainly feels so. 
If you made it this far you're out of Javaland, so why not enjoy it?
 *Webware - Old MacDonald Had a Farm* <http://www.djangoproject.com/>   

EE I EE I O
and on his farm he had a fast, multi-threaded, easy-to-use application 
server
EE I EE I O
and on his farm he had some servlets
EE I EE I O 
and on his farm he had some Python Server Pages (similar to ASP, PHP and 
JSP) 
EE I EE I O 
and on his farm he had some object-relational mappers 
EE I EE I O 
and on his farm he had some task scheduling 
EE I EE I O 
and on his farm he had some user management and authentication
EE I EE I O 
and on his farm he had some CGI wrappers

*Strength**:* There is a lot of stuff on this farm. I hear many people come 
and use this stuff so it must be good-old, home-grown, free-range, 
genetically-unmodified organic stuff. Me? I keep stepping into other kinds 
of stuff. 
*Weakness:* Help? I tried a few times to get it, but I can't! Just how 
exactly is this thing working? Where do I start? Serious impedance problems 
drowning in seemingly endless documentation.
 *Quixote - Nomen est Omen* <http://www.mems-exchange.org/software/quixote/>   

Imagine that you have a cherry pie. Now replace the cherries with cooked 
apple chunks and the pie with Sancho Panza's hat. You've just transformed 
CherryPy into Quixote. From my comfy chair it seems that conceptually 
Quixote is *exactly* the same as Cherrypy. Implementation wise? Well 
sometimes the same thing can look a little different..

*Strength**:* "Programmatic" web development.
*Weakness:* Remi Delon vs Andrew Kuchling, news at 11. 
 *Karigell - Hip Beatniks * <http://karrigell.sourceforge.net/>   

Provides its own webserver and makes you feel like you're the boss. From the 
docs: The "Hello world" program can be programmed in one of the 4 forms 
below: 

   - hello.py (script) 
   - hello.ks (service) 
   - hello.pih (python in HTML) 
   - hello.hip (HTML in python) 

*Strength**:* if it makes you happy you can clap your hand
*Weakness:* Here is a question from the new SAT test:

neo-hippie *is to* punk-rock
*what* Karigell *is to* ???? (answer PyWork)

 *PyWork - Maximum Overhead* <http://pywork.sourceforge.net/>   

Some folks (including your boss) like to slowly savor configuration files. 
Deep fried in XML if possible. Files that declare all relevant and 
irrelevant minutiae of your program. Next thing you know you're programming 
in XML, ouch! But in some cases that might make sense, but I have to wonder 
at what level of complexity will such overhead
(example<http://pywork.sourceforge.net/doc/node8.html>)
pay off?

*Strength**:* Very uptight. Fully implements Emmanuel Kant's View of the 
Mind and Consciousness of Self
*Weakness:* Attack of XML configuration files! 
  
Contact Email: iua1 at psu.edu


在 05-7-20,Spirit Auding<auding at gmail.com> 写道:
> 老大,能不能帮忙贴过来,教育网我连接不上……等到花儿都歇了……
> 
> 
> 
> On 7/20/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> > 
> >
> http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html
> > 
> > 这个地方总结归纳了一下Python现有的Web Frameworks,比较全了,大家可以看看:)
> > 
> > --
> > Blog: http://www.donews.net/changzheng
> > 
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> > 
> > 
> > 
> 
> 
> 
> -- 
> #############################################
> # "your future depends on your dreams." so go to sleep.
> # save water. shower with your girlfriend.
> #
> # Welcom2 : http//blog.csdn.net/auding1900/
> ############################################# 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050720/bd7d6bab/attachment-0001.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月20日 星期三 17:00

清风 paradise.qingfeng at gmail.com
Wed Jul 20 17:00:25 HKT 2005

顺便整理到啄木鸟吧:)以后遇到人问类似问题,可以一个链接直接指过去了

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月20日 星期三 17:16

limodou limodou at gmail.com
Wed Jul 20 17:16:57 HKT 2005

那只是一个个人的观点,能作为问题的回答吗?

在 05-7-20,清风<paradise.qingfeng at gmail.com> 写道:
> 顺便整理到啄木鸟吧:)以后遇到人问类似问题,可以一个链接直接指过去了
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 


-- 
I like python! 
My Donews Blog: http://www.donews.net/limodou
New Google Maillist: http://groups-beta.google.com/group/python-cn

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月20日 星期三 17:28

Spirit Auding auding at gmail.com
Wed Jul 20 17:28:12 HKT 2005

知道是什么了,呵呵,多谢!

On 7/20/05, limodou <limodou at gmail.com> wrote:
> 
> 那只是一个个人的观点,能作为问题的回答吗?
> 
> 在 05-7-20,清风<paradise.qingfeng at gmail.com> 写道:
> > 顺便整理到啄木鸟吧:)以后遇到人问类似问题,可以一个链接直接指过去了
> >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> 
> 
> --
> I like python!
> My Donews Blog: http://www.donews.net/limodou
> New Google Maillist: http://groups-beta.google.com/group/python-cn
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 


-- 
#############################################
# "your future depends on your dreams." so go to sleep.
# save water. shower with your girlfriend.
#
# Welcom2 : http//blog.csdn.net/auding1900/
#############################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050720/0adb0978/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月21日 星期四 08:36

watchsun watchsun at gmail.com
Thu Jul 21 08:36:32 HKT 2005

刚加入列表没多久,还不知怎样整理到啄木鸟呢 :-)

在05-7-20,清风 <paradise.qingfeng at gmail.com> 写道:
> 
> 顺便整理到啄木鸟吧:)以后遇到人问类似问题,可以一个链接直接指过去了
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050721/07dfb5db/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月21日 星期四 08:43

limodou limodou at gmail.com
Thu Jul 21 08:43:08 HKT 2005

啄木鸟在 http://wiki.woodpecker.org.cn
上去后,在右上角有一个user
preference可以注册一个用户。建议先在行者堂页面注册你的用户ID可以让大家注意到你。然后可以在pythonCN
FAQ页面编辑,增加一个新页面。具体的建议先找一找wiki相关的使用说明。

在 05-7-21,watchsun<watchsun at gmail.com> 写道:
> 刚加入列表没多久,还不知怎样整理到啄木鸟呢  :-)
> 
> 在05-7-20,清风 <paradise.qingfeng at gmail.com> 写道:
> > 顺便整理到啄木鸟吧:)以后遇到人问类似问题,可以一个链接直接指过去了
> > 
> 
>  
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 


-- 
I like python! 
My Donews Blog: http://www.donews.net/limodou
New Google Maillist: http://groups-beta.google.com/group/python-cn

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年07月21日 星期四 10:12

Qiangning Hong hongqn at gmail.com
Thu Jul 21 10:12:15 HKT 2005

清风 wrote:
> http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html
> 
> 这个地方总结归纳了一下Python现有的Web Frameworks,比较全了,大家可以看看:)

这个网址在del.icio.us上是我贴的第一贴,呵呵。

作者只是根据自己的经验写些个人的看法,全是谈不上的,只能说是写的比较有趣。

如果想有进一步的了解,最好还是看一下c.l.py上对这个网站的讨论
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/4b2c456a9fcd6e2e

-- 
Qiangning Hong

I'm usually annoyed by IDEs because, for instance, they don't use VIM
as an editor. Since I'm hooked to that, all IDEs I've used so far have
failed to impress me.
     -- Sybren Stuvel @ c.l.python

Get Firefox! 
<http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号