from bottle import get, run, template
@get ('/hello/<name>')
def index (name):
return template ('<b>Hello </b>!', name=name)
run (host='localhost', port=8080)
Bottle is a micro web-framework for Python released under the MIT license. It is distributed as a single-file module compatible with Python 2.7 and Python 3, and it has no dependencies other then the Python Standard Library[cit1]. The core functionalities of the framework can be extended by third-party plugins[cit2]. Bottle has support for both WSGI and CGI interfaces[cit3]. It was started in 2009 by Marcel Hellkamp[cit4].
from bottle import get, run, template
@get ('/hello/<name>')
def index (name):
return template ('<b>Hello </b>!', name=name)
run (host='localhost', port=8080)