File:Bottle-logo.svg | |
Developer(s) | Marcel Hellkamp |
---|---|
Initial release | July 1, 2009 |
Repository | Bottle Repository |
Written in | Python |
Operating system | Cross-platform |
Type | Web framework |
License | MIT |
Website | {{{1}}} |
Bottle is a WSGI micro web-framework for the Python programming language. It is designed to be fast, simple and lightweight, and is distributed as a single file module with no dependencies other than the Python Standard Library. The same module runs with Python 2.7 and 3.x.[1]
It offers request dispatching (routes) with URL parameter support, templates, a built-in web server and adapters for many third-party WSGI/HTTP-server and template engines.[2]
It is designed to be lightweight, and to allow development of web applications easily and quickly.[3]
A simple "Hello World!"
from bottle import route, run, template @route('/hello/<name>') def index(name): return template('<b>Hello {{name}}</b>!', name=name) run(host='localhost', port=8080)