• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bottle.egg-info/H03-May-2022-4238

test/H11-Nov-2020-3,5272,880

LICENSEH A D11-Nov-20201 KiB2016

MANIFEST.inH A D11-Nov-2020117 76

PKG-INFOH A D11-Nov-20201.8 KiB4238

README.rstH A D11-Nov-20201 KiB3523

bottle.pyH A D11-Nov-2020147 KiB3,7722,988

setup.cfgH A D11-Nov-202038 53

setup.pyH A D11-Nov-20201.7 KiB4539

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