CherryPy ( / ˈʧɛɹi paɪ / “CherryPye”, pun : “cherry pie” means an object-oriented web framework written in the Python programming language . Designed for rapid development of web applications for the Internet . It is an add-on over the HTTP protocol , but remains low and does not go beyond the requirements of RFC 2616 .
| Cherrypy | |
|---|---|
| Type of | Web application development framework |
| Developer | CherryPy team |
| Written on | |
| operating system | any |
| Interface languages | Python |
| Latest version | 14.0.1 [1] ( March 22, 2018 ) |
| License | BSD License |
| Site | cherrypy.org |
CherryPy can act as a standalone web server or run another server application that supports the WSGI protocol. CherryPy does not deal with such tasks as processing templates for data output, access to a database, user authorization. The framework expands due to filters, simple interfaces consisting of seven functions that are called at specific points in the request / response processing process.
CherryPy is the main component of TurboGears .
Pythonic style interface
One of the goals of project founder Remy Delon was to make CherryPy as close as possible to the pythonic style principle. This allowed developers to use the framework like any ordinary Python module and not think about the features of web programming .
For example, the standard Hello World in CherryPy 3 looks like this:
import cherrypy
class HelloWorld ( object ):
@ cherrypy.expose
def index ( self ):
return "Hello World!"
cherrypy . quickstart ( HelloWorld ())
Notes
- ↑ CherryPy 14.0.1: Python Package Index (link not available)
- ↑ The cherrypy Open Source Project on Open Hub: Languages Page - 2006.
Links
- CherryPy Website
- Web Application Framework Comparison