Trisha Shetty (Editor)

Bottle (web framework)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Marcel Hellkamp

Operating system
  
Cross-platform

Written in
  
Python

Type
  
Web framework

Initial release
  
July 1, 2009; 7 years ago (2009-07-01)

Stable release
  
0.12.9 / October 24, 2015; 15 months ago (2015-10-24)

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.5+ and 3.x.

Contents

It offers request dispatching (routes) with URL parameter support, templates, key-value database, a built-in web server and adapters for many third-party WSGI/HTTP-server and template engines.

It is designed to be lightweight, and to allow development of web applications easily and quickly.

Features

  • Single file which runs with both Python 2.5+ and 3.x
  • Can run as a standalone web server or be used behind ("mounted on") any web server which supports WSGI
  • Built-in template engine called SimpleTemplate Engine
  • Support for JSON client data (for REST and JavaScript clients)
  • Plugins for popular databases and key/value stores and other features
  • Example

    A simple "Hello World!"

    References

    Bottle (web framework) Wikipedia