README.rst
1Bottle Web Framework
2====================
3
4.. image:: http://bottlepy.org/docs/dev/_static/logo_nav.png
5 :alt: Bottle Logo
6 :align: right
7
8Bottle is a fast and simple micro-framework for small web applications. It
9offers request dispatching (URL routing) with URL parameter support, templates,
10a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and
11template engines - all in a single file and with no dependencies other than the
12Python Standard Library.
13
14Homepage and documentation: http://bottlepy.org/
15License: MIT (see LICENSE)
16
17Installation and Dependencies
18-----------------------------
19
20Install 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.
21
22
23Example
24-------
25
26.. code-block:: python
27
28 from bottle import route, run
29
30 @route('/hello/<name>')
31 def hello(name):
32 return '<h1>Hello %s!</h1>' % name.title()
33
34 run(host='localhost', port=8080)
35