Using the Bottle framework to build Python apps
Python in a Bottle

The Bottle framework provides the fastest and easiest way to write web apps in Python. In this article, we help you get started with this lightweight framework.
Python lets you quickly whip up simple and more advanced standalone applications, even if your coding skills are relatively modest. What if you want to build a Python-based web app, though? Several frameworks let you do that, and if you are looking for something simple and lightweight, Bottle [1] is exactly what you need. This micro framework offers just the right mix of functionality and simplicity, which makes it an ideal tool for building Python-based web apps with consummate ease.
Installing Bottle
The easiest way to install Bottle is using the Python Package Manager (also known as pip). It's available in the official software repositories of many mainstream Linux distributions, so it can be installed using the default package manager. To deploy pip on Debian or Ubuntu, run
apt-get install python-pip
[...]
Buy this article as PDF
(incl. VAT)