Reproduced [Bottle] [0.8] [1] Bottle Introduction

Source: Internet
Author: User
Tags git workflow

This article was reproduced from: http://article.yeeyan.org/view/35282/120742

Bottle is a fast, simple and lightweight Python WSGI micro-frame. It is distributed as a single file module and does not rely on other Python standard libraries.

1. Bottle:python WEB Framework
1.1. Core Features
1.2. Example: "Hello World" in Bottle
1.3. Download and install
2. User Guide
3. API Documentation
4. Tutorials and resources
5. Development and contribution
6. License
A. Footnotes

1. Bottle:python WEB Framework

Bottle is a fast, simple and lightweight Python WSGI micro-frame. It is distributed as a single file module and does not rely on other Python standard libraries.

1.1. Core Features

Routing: A call-type function mapping that supports the request for clean and dynamic URLs.
Templates: Fast and pythonic built-in template engine, and support for Mako, JINJA2, and Cheetah templates.
Utility: Easy access to form data, file uploads, cookies, header information, and other metadata associated with HTTP.
Server: Built-in HTTP development server with support for paste, FAPWS3, Google application engine, cherrypy, or any other HTTP server with WSGI capabilities.

1.2. Example: "Hello World" in Bottle

 from Import route, Run@route ('/:name') def ' World ' ):    return' Hello%s '%'  localhost', port = 8080)

1.3. Download and install

Install the final stable release with PyPi (easy_install-u bottle) or download bottle.py to your project directory. It does not force [1] to rely on other Python standard libraries. The Bottle runs on Python 2.5+ and 3.x (using 2to3).

2. User Guide

If you want to learn how to use the Bottle framework in WEB development, start here. If you have any questions that are not answered again, feel free to ask for the mailing list.

Tutorial

1. Start
2. Routing
3. Generate content
4. Accessing request data
5. Templates
6. Development
7. Deployment
8. Glossary

Simpletemplate engine

1. Simpletemplate syntax
2. Simpletemplate API
3. Known bugs

Frequently Asked Questions

1. About Bottle
2. Common problems and defects

3. API Documentation

Looking for a specified function, class, or method? These chapters cover all the interfaces provided by the framework and explain how to use them.

API Reference

1. Module contents
2. Bottle class
3. HTTP Request and Response objects
4. Templates

4. Tutorials and resources

Tutorial: "Todo" Application

1. Purpose
2. Before we begin ...
3. Use Bottle for a Web-based "Todo"
4. Server Settings
5. Last Words
6. Complete list of examples

Resources

1. Save session tracking
2. Debug Style: Debug middleware
3. Embed in other WSGI applications
4. Ignore trailing slashes

5. Development and contribution

These chapters are intended for developers interested in Bottle development and distribution workflows.

Release Notes and update logs

1. Fix the release version 0.8.3
2. Fix the release version 0.8.2
3. Release 0.8

Developer Notes

1. Intervention
2. Get the source code
3. Branches and their purpose
4. Release and update
5. GIT Workflow Example

6. License

The code and documentation are available under the MIT license:

Copyright (c), Marcel Hellkamp.

Permission is hereby granted, free of charge, to all person obtaining a copy of this software and associated documentation Files (the "Software"), to deal in the software without restriction, including without limitation the rights to use, copy , modify, merge, publish, distribute, sublicense, and/or sell copies of the software, and to permit persons to whom Ftware is furnished to does so, subject to the following conditions:

The above copyright notice and this permission notice shall being included in all copies or substantial portions of the SOFTW Is.

The software is provided ' as is ', without WARRANTY of any KIND, EXPRESS OR implied, including and not LIMITED to the Warra Nties of merchantability, FITNESS for A particular PURPOSE and noninfringement. In NO EVENT shall the
AUTHORS or COPYRIGHT holders be liable for any CLAIM, damages OR other liability, WHETHER in an ACTION of contract, TORT O R OTHERWISE, arising from, out of or in CONNECTION with the software or the use or other dealings in the software.

However, the BOTTLE flag is not under this license. Flags are allowed, as a link to the Bottle home page, or directly in an unmodified library. In all other cases, please inquire first.

A. Footnotes

[1] The use of templates or server adapter classes requires a corresponding template or server module.

Reproduced [Bottle] [0.8] [1] Bottle Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.