Total Pageviews

Tuesday, 4 February 2014

基于python的web框架-bottle.py

bottle.py is a fast and simple micro-framework for python web-applications.

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)

Installation and Dependencies

Install bottle with pip install bottle or just download bottle.py and place it in your project directory. There are no (hard) dependencies other than the Python Standard Library.

from https://github.com/defnull/bottle
http://bottlepy.org/docs/dev/tutorial.html