from bottle import route, run @route('/hello/:name') def index(name='World'): return 'Hello %s!' % name run(host='localhost', port=8000)