Skip to content

Instantly share code, notes, and snippets.

@Calzzetta
Created April 14, 2015 13:50
Show Gist options
  • Save Calzzetta/4b8d977b14b1b4784719 to your computer and use it in GitHub Desktop.
Save Calzzetta/4b8d977b14b1b4784719 to your computer and use it in GitHub Desktop.
Bootle Webserver Get example
from bottle import get, request, run
@get('/')
def index():
name = request.GET.get('name')
return 'Hello %s!' % name
run(host='0.0.0.0', port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment