CSC/ECE 517 Fall 2014/ch1a 3 zq: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| No edit summary | |||
| Line 6: | Line 6: | ||
| == Basic Example == | == Basic Example == | ||
| <source lang="python"> | |||
| import cherrypy | |||
| class WebApp(object): | |||
|     @cherrypy.expose | |||
|     def index(self): | |||
|         return "Hello, CherryPy!" | |||
| cherrypy.quickstart(WebApp()) | |||
| </source> | |||
| == Features == | == Features == | ||
Revision as of 19:31, 13 September 2014
CherryPy Framework
CherryPy is a python based, object-oriented web framework that enables developers to quickly create lightweight and fast web applications.<ref>http://www.cherrypy.org/</ref><ref>http://en.wikipedia.org/wiki/CherryPy</ref>
Background
Basic Example
import cherrypy
class WebApp(object):
    @cherrypy.expose
    def index(self):
        return "Hello, CherryPy!"
   
cherrypy.quickstart(WebApp())
Features
References
<references/>