Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (14 sloc) 0.453 kb
#!/usr/bin/env python
import sys
from brubeck.request_handling import Brubeck, WebMessageHandler
class DemoHandler(WebMessageHandler):
def get(self):
name = self.get_argument('name', 'dude')
self.set_body('Take five, %s!' % name)
return self.render()
config = {
'mongrel2_pair': ('ipc://', 'ipc://'),
'handler_tuples': [(r'^/brubeck', DemoHandler)],
app = Brubeck(**config)
Jump to Line
Something went wrong with that request. Please try again.