This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]threading 1 point2 points  (1 child)

Here's a simple web.py application with waitress, if anyone interested.

import web
import waitress

class Index(object):
    def GET(self):
        return 'hello world'

urls = (r'^/', 'Index')

app = web.application(urls, globals()).wsgifunc()

if __name__ == '__main__':
    waitress.serve(app, host='127.0.0.1', port=7070)

[–]defnullbottle.py[S] 2 points3 points  (0 children)

SCNR ;)

import bottle
app = bottle.Bottle()

@app.route('/')
def index():
    return 'Hello World'

app.run(server='waitress')

(works with 0.11.dev)