Skip to content

Repository files navigation

Bottle LogoBottle BuildCI BottleCoverageLatest VersionLicense

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.

Homepage and documentation: http://bottlepy.org

Example: "Hello World" in a bottle

frombottleimportroute, run, template@route('/hello/<name>')defindex(name):
returntemplate('<b>Hello {{name}}</b>!', 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 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.7 and 3.3+.

License

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.

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages