CherryPy: Going to and from the web has never been so easy!

When you start using CherryPy, you're not going to miss CGI, Java Servlets, or whatever it is you were doing before at all. CherryPy makes hooking code up to the web as easy as writing methods in Python. You just set an object as CherryPy's root object, and all of your URLs cleanly map to a method inside of that root object. Don't believe me? Look at Hello World:

Pointing your browser at http://yourserver/?who=Foobar, you'll see "Hello, Foobar!" in your browser. It's that easy! CherryPy automatically calls the "index" method for objects that you hook up to your root, and any method that you expose becomes automatically available as well! CherryPy also lets you define a "default" method that picks up any request which didn't match one of the methods you had defined. The default method makes it easy to do blog-like URLs: 2005/09/16/cherrypy_rocks.

And, did you notice that MyRoot doesn't subclass any other class? CherryPy leaves you free to set up your objects however it makes sense to do so!

CherryPy also gives you sessions, "filters" that can change data at various points of the request cycle, and a built-in zippy webserver.

CherryPy is a very natural and fun way to write webapps in Python.

Return to About TurboGears.

Download Stable Version

TurboGears 1.0.4.4

Mar 7, 2008

Latest stable version

1.0.4.4 is a bugfix release. It is still recommended to upgrade as it fixes a problem with the cookie handling and adds some more control about the redirections for login. Please consult our changelog for all the details.
Download now button Upgrade instructions button (Upgrade hints for SQLAlchemy)

Community

Advertisement

Rapid Web Applications with TurboGea...

Mark Ramm, Kevin D...

  Buy New $29.69

Privacy Information

Hosting Options

TurboGears can be hosted in many places, but we've got some of the best choices picked out. Super simple TurboGears use from WebFaction starting at $7.50 a month or, if you need more control, dedicated servers from ServerPronto starting at just $29.95 a month. Check it out
last updated: Jun 25, 2007
Comment on this page