CherryPy
Remi Delon
remi@cherrypy.org
Introduction
- Pythonic, object-oriented web development framework
- Makes it trivial to expose objects to the web in a pythonic way
- Low level (no ORM, templating language, form handling, ...)
- Can be used directly for simple websites, or serves as a base for "full-stack frameworks" such as TurboGears, Subway
- Runs everywhere python runs
- Requires Python-2.3 or later
- BSD license
- Version 2.2 coming in a few weeks
Brief history of CherryPy
- Jun 2002: CherryPy-0.1 released: users wrote .cpy files made of python code + some extensions (ex: CherryClass), then compiled them into one .py file ... bad idea (too unpythonic) ... some interest, but quite limited
- Apr 2004: Last "CP1" release
- Sep 2004: First "CP2" release: pure python code, no more compilation step, templating system separated from the core ... much more interest from the community
- 6 weeks ago: CherryPy-2.1 released ... huge step forward
- In a few weeks: CherryPy-2.2 release
Demo
- Exposing objects
- "debug/production" environment, autoreload
- Configuration
- Filters
- Generators
- Sessions
References
- http://www.cherrypy.org
- Documentation: tutorial, FAQ, recipes, ...
- Mailing lists
- IRC channel: #cherrypy on OFTC
Any questions ?