Bottle (web framework)

BottleFile:Bottle-logo.svg

Developer(s)| Marcel Hellkamp
Initial release| July 1, 2009; 17 years ago (2009-07-01)
Repository| Bottle Repository
Written in| Python
Operating system| Cross-platform
Type| Web framework
License| MIT
Website| {{{1}}}

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.7 and 3.x.[1]

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

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

## Contents

* 1 Features
* 2 Example
* 3 See also
* 4 References
* 5 External links

## 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[4]

## Example

A simple "Hello World!"

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)

## See also

* Flask (web framework)

## References

1. ↑ Bottle website
2. ↑ Web Frameworks for Python
3. ↑ Digital Ocean Bottle tutorial
4. ↑ List of available Plugins

## External links

* v
* t
* e

Python

Implementations|

* CircuitPython
* CLPython
* CPython
* Cython
* MicroPython
* Numba
* IronPython
* Jython
* Psyco
* PyPy
* Python for S60
* Shed Skin
* Stackless Python
* Unladen Swallow
* more...

IDE|

* Boa
* Eric Python IDE
* IDLE
* PyCharm
* PyDev
* SPE
* Ninja-IDE
* more...

Topics|

* WSGI

* software (list)
* Python Software Foundation
* PyCon

* v
* t
* e

Python web frameworks

* BlueBream
* Bottle
* CherryPy
* Django
* Flask
* Grok
* Nagare
* Nevow
* Pyjs
* Pylons
* Pyramid
* Quixote
* Spyce
* TACTIC
* Tornado
* TurboGears
* TwistedWeb
* Webware
* web2py
* Zope 2
* more...

* v
* t
* e

Web frameworks

* Comparison

C++|

* CppCMS
* Wt

CLI|

* ASP.NET
* Core
* AJAX
* Dynamic Data
* MVC
* Razor
* Web Forms
* DNN
* BFC
* MonoRail
* OpenRasta
* Umbraco
* WebSharper

ColdFusion|

* CFWheels
* ColdBox Platform
* ColdSpring
* Fusebox
* Model-Glue

Common Lisp|

* Caveman2
* CL-HTTP
* Weblocks

Haskell|

* Yesod
* Snap

Java|

* AppFuse
* Flexive
* Grails
* GWT
* ICEfaces
* ItsNat
* JavaServer Faces
* JHipster
* Jspx
* JWt
* OpenXava
* Play
* Remote Application Platform
* RIFE
* Seam
* Sling
* Spring
* Stripes
* Struts
* Tapestry
* Vaadin
* Vert.x
* WebWork
* Wicket
* WaveMaker
* ZK

JavaScript|

* Angular/AngularJS
* Backbone.js
* Chaplin.js
* Closure
* Dojo Toolkit
* Ember.js
* Express.js
* Ext JS
* jQuery
* Knockout.js
* Meteor
* MooTools
* Node.js
* OpenUI5
* Prototype
* React
* Rico
* script.aculo.us
* Sencha Touch
* SproutCore
* Svelte
* Vue.js
* Wakanda

Perl|

* Catalyst
* Dancer
* Mason
* Maypole
* Mojolicious
* WebGUI

PHP|

* CakePHP
* CodeIgniter
* Drupal
* Fat-Free
* FuelPHP
* Flow
* Grav
* Gyroscope
* Horde
* Joomla
* Kohana
* Laravel
* Lithium
* Midgard
* MODX
* Nette
* Phalcon
* PHP-Fusion
* Pop PHP
* PRADO
* ProcessWire
* Qcodo
* Silex
* SilverStripe
* Symfony
* TYPO3
* WordPress
* XOOPS
* Yii
* Zend Framework

Python|

* BlueBream
* CherryPy
* Django
* Flask
* Grok
* Nevow
* Pyjs
* Pylons
* Pyramid
* Quixote
* TACTIC
* Tornado
* TurboGears
* web2py
* Webware
* Zope 2
* more...

Ruby|

* Camping
* Merb
* Padrino
* Ruby on Rails
* Sinatra

Scala|

* Lift
* Play
* Scalatra

Smalltalk|

* AIDA/Web
* Seaside

Other languages|

* Vibe.d (D)
* Application Express (PL/SQL)
* Grails (Groovy)
* Kepler (Lua)
* OpenACS (Tcl)
* Phoenix (Elixir)
* SproutCore (JavaScript-Ruby)
* Yaws (Erlang)

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Bottle_(web_framework)&oldid=738840"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template