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 TG2

TurboGears 2.0

May 27, 2009 Install the 2.0 final release from our custom package repository. Many people are already using it in production. If you're upgrading from an earlier alpha here's the changelog.

Download now button

Download TG2.1 beta

TurboGears 2.1b1

January 25, 2009 Install latest 2.1 beta release from our custom package repository. If you're upgrading from an earlier beta here's the changelog.

Download now button

Download TG 1.1

TurboGears 1.1

Oct 4, 2009 1.1 is the first release of the 1.1 branch. It features SQLAlchemy and Genshi as the defaults for quickstarted applications. TurboGears 1.1 has been in beta testing for a long time but deployed in real, high demanding production environments already for more than a year. See the changelog for everything else that's new!

Download now button
TG 1.1 Documentation

Download TG 1.0.9

TurboGears 1.0.9

Oct 16, 2009 1.0.9 is the latest maintenance release from the 1.0 branch. See the changelog for the list of changes.

Download now button
TG 1.0 Documentation

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