Bottle

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.1 The core functionalities of the framework can be extended by third-party plugins.2 Bottle has support for both WSGI and CGI interfaces.3 It was started in 2009 by Marcel Hellkamp.4

A "Hello World" example

from bottle import get, run, template

@get('/hello/<name>')
def index(name):
    return template('<b>Hello </b>!', name=name)

run(host='localhost', port=8080)

External links