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

5 years after

.. image:: :target: :alt: Bottle Logo :align: right

.. image:: :target: :alt: Bottle Build

.. image:: :target: :alt: Downloads

.. image:: :target: :alt: Latest Version

.. image:: :target: :alt: License

.. _mako: .. _cheetah: .. _jinja2: .. _paste: .. _fapws3: .. _bjoern: .. _cherrypy: .. _WSGI: .. _Python:

============================ Bottle: Python Web Framework

Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library <>_.

  • Routing: Requests to function-call mapping with support for clean and dynamic URLs.
  • Templates: Fast and pythonic *built-in template engine* <> and support for mako, jinja2 and cheetah templates.
  • Utilities: Convenient access to form data, file uploads, cookies, headers and other HTTP-related metadata.
  • Server: Built-in HTTP development server and support for paste, fapws3, bjoern, Google App Engine <>, cherrypy or any other WSGI capable HTTP server.

Homepage and documentation:

Example: "Hello World" in a bottle

.. code-block:: python

from bottle import route, run, template

@route('/hello/') def index(name): return template('Hello {{name}}!', name=name)

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

Run this script or paste it into a Python console, then point your browser to <http://localhost:8080/hello/world>_. That's it.

Download and Install

.. __:

Install the latest stable release with pip install bottle, easy_install -U bottle or download bottle.py__ (unstable) into your project directory. There are no hard dependencies other than the Python standard library. Bottle runs with Python 2.5+ and 3.x.


.. __:

Code and documentation are available according to the MIT License (see LICENSE__).

The Bottle logo however is NOT covered by that license. It is allowed to use the logo as a link to the bottle homepage or in direct context with the unmodified library. In all other cases please ask first.

Related Repositories



Authentication module for the Bottle and Flask web frameworks ...



Very basic kickstart Bottle kit with Vue.js. Included Axios,, Babel and ...



PostgreSQL Plugin for ...



Simple and extensible administrative interface framework for Bottle ...



MySQL integration for Bottle. ...

Top Contributors

defnull sgala iurisilvio avelino sc68cal myzhan fredj michael-k nicolas-van eric-wieser babs davidwtbuxton FedericoCeratto jonashaag ziadsawalha mengzhuo atc- wobsta paulbarbu Bystroushaak gabeio fatiherikli nayuki ifduyue snaury aisipos denik eka johnnykv lordjabez


-   0.10.9 zip tar
-   0.10.8 zip tar
-   0.10.7 zip tar
-   0.10.6 zip tar
-   0.10.5 zip tar
-   0.10.4 zip tar
-   0.10.3 zip tar
-   0.10.2 zip tar
-   0.10.1 zip tar
-   0.9.8 zip tar
-   0.9.7 zip tar
-   0.9.6 zip tar
-   0.9.5 zip tar
-   0.9.4 zip tar
-   0.9.3 zip tar
-   0.9.2 zip tar
-   0.9.1 zip tar
-   0.9rc1 zip tar
-   0.8.5 zip tar
-   0.8.4 zip tar
-   0.8.3 zip tar
-   0.8.2 zip tar
-   0.8.1 zip tar
-   0.8.0 zip tar
-   0.8.rc1 zip tar
-   0.7.1rc zip tar
-   0.6.6 zip tar
-   0.6.5 zip tar
-   0.6.4 zip tar
-   0.6.3 zip tar