CherryPy

From Wikipedia, the free encyclopedia

CherryPy
Developer: CherryPy team
Latest release: 3.0.0RC1 / November 29, 2006
OS: Cross-platform
Use: Web application framework
License: BSD License
Website: www.cherrypy.org

CherryPy is a framework for object-oriented web development using the Python programming language. It is designed for rapid web application development by wrapping the HTTP protocol but stays at a low level and does not offer much more than what is defined in RFC 2616.

CherryPy does not deal with tasks such as templating for output rendering, backend access, authentication protocols. The framework is extensible with filters, simple interfaces made of seven functions. These are called at defined points in the request/response processing.

[edit] Pythonic interface

One of the goals of the project founder, Remi Delon, was to make CherryPy as pythonic as possible. This allows the developer to use the framework as any regular Python module and to forget (from a technical point of view) that the application is for the web.

For instance, the common Hello World program with CherryPy would look like:

import cherrypy

class Something:
   def index(self):
       return "Hello World!"
   index.exposed = True

if __name__ == '__main__':
   cherrypy.root = Something()
   cherrypy.server.start()

[edit] See also

[edit] External links

In other languages