Posted on 2007-12-24 10:39
江边之鸟 阅读(476)
评论(0) 编辑 收藏 引用
CherryPy is a pythonic, object-oriented HTTP framework.
CherryPy allows developers to build
web applications in much the same way they would build any other
object-oriented Python program. This usually results in smaller source
code developed in less time.
CherryPy is now more than three years
old and it is has proven very fast and stable. It is being used in
production by many sites, from the simplest ones to the most demanding
ones.
Oh, and most importantly: CherryPy is fun to work with :-) Here's how easy it is to write "Hello World" in CherryPy 3:
import cherrypy
class HelloWorld(object):
def index(self):
return "Hello World!"
index.exposed = True
cherrypy.quickstart(HelloWorld())