File: cherryapp.py

package info (click to toggle)
gunicorn 25.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,048 kB
  • sloc: python: 43,889; sh: 285; javascript: 54; makefile: 38
file content (15 lines) | stat: -rw-r--r-- 296 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.

import cherrypy


class Root:
    @cherrypy.expose
    def index(self):
        return 'Hello World!'

cherrypy.config.update({'environment': 'embedded'})

app = cherrypy.tree.mount(Root())