Skip to content
forked from bottlepy/bottle

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

License

Notifications You must be signed in to change notification settings

tomeasure/bottle

This branch is 247 commits behind bottlepy/bottle:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

22e1fb5 · May 11, 2017
May 8, 2017
Mar 25, 2017
Sep 2, 2016
Mar 24, 2015
Mar 25, 2017
Aug 27, 2016
Aug 26, 2016
Sep 12, 2011
Sep 25, 2016
Sep 25, 2016
Mar 26, 2017
Jan 9, 2017
Oct 2, 2014
Aug 26, 2016
Aug 26, 2016

Repository files navigation

Bottle Logo Bottle Build CI Bottle Coverage Downloads Latest Version License

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: http://bottlepy.org

Example: "Hello World" in a bottle

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)

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.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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.5%
  • Other 1.5%