Skip to content
This repository

bottle.py is a fast and simple micro-framework for python web-applications.

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 plugins
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in Fix: Added test/tools.py to sdist (fixes #208) September 12, 2011
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.rst
Octocat-spinner-32 bottle.py
Octocat-spinner-32 setup.py
Octocat-spinner-32 tox.ini
README.rst

Bottle Web Framework

Bottle Logo

Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (URL routing) with URL parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file and with no dependencies other than the Python Standard Library.

Homepage and documentation: http://bottlepy.org/ License: MIT (see LICENSE.txt)

Installation and Dependencies

Install bottle with pip install bottle or just download bottle.py and place it in your project directory. There are no (hard) dependencies other than the Python Standard Library.

Example

from bottle import route, run

@route('/hello/:name')
def hello(name):
    return '<h1>Hello %s!</h1>' % name.title()

run(host='localhost', port=8080)
Something went wrong with that request. Please try again.