blob: 583e63f3be00ad4d31ca399de816865c802e81c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Bottle Web Framework
====================
.. image:: http://bottlepy.org/bottle-logo.png
:alt: Bottle Logo
:align: right
Bottle is a fast and simple micro-framework for small web applications. It
offers request dispatching (URL routing) with URL parameter support, templates,
a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and
template engines - all in a single file and with no dependencies other than the
Python Standard Library.
Homepage and documentation: http://bottlepy.org/
License: MIT (see LICENSE.txt)
Installation and Dependencies
-----------------------------
Install bottle with ``pip install bottle`` or just `download bottle.py <http://pypi.python.org/pypi/bottle>`_ and place it in your project directory. There are no (hard) dependencies other than the Python Standard Library.
Example
-------
::
from bottle import route, run
@route('/hello/:name')
def hello(name):
return '<h1>Hello %s!</h1>' % name.title()
run(host='localhost', port=8080)
|