Bottle.py is fast and lightweight micro web-framework for Python. It was designed to create small-scaled web applications and services.
Benefits of Bottle.py:
- Small size.
This web-framework is situated in a single file module and its size is 50-60 kB. It is not over-packed with different features, but contains the most essential ones. - Easy to deploy.
You can install it through the global index of Python packages (PyPI). The only requirement for Bottle.py is Python Standart Library. Also it can be running with no configuration and works in both Python 2.5+ or Python 3. - Easy to learn.
If you have basic knowledge of both Python and web development, you would be able to combine them and use this framework. There is User's Guide for Bottle.py. - Ideal for small web-applications.
If you want to create and manage small website with little effort but substantial results you can easily use Python functions as a web page or website. - Faster than more powerful frameworks.
Bottle.py parses and renders templates 5 to 10 times faster than mako. - Still develops.
A number of plugins were added.
Main features of Bottle:
- Routing:
Bottle.py requests dispatching, so provide clean and dynamic URL-routes for mapping. Use simplified syntax or regular expressions for URL parameters. - WSGI:
Bottle.py is Web Server Gateway Interface framework and work with CGI and WSGI internals is easy. - Templates:
Integrated template engine is fast and built for Python user's. There is support for mako, jinja2 and cheetah templates. - Utilities:
Bottle.py provides convenient access to form data, headers, file uploads, cookies and other HTTP related metadata. - Server:
There is built-in HTTP development server and support for paste, fapws3, flup, bjoern, wsgiref.simple_server (default), cherrypy, Google App Engine or any other WSGI capable HTTP server. - Speed optimisations:
There are fast static routes (single dict lookup) and frequently used routes are tested first. Platform-specific high-performance file-transmission facilities, such as the Unix sendfile(), are supported as well. Bottle.py depends on wsgi.file_wrapper provided by WSGI-Server implementation.
Bottle is a simple Python micro framework that includes minimal tools (routing, templating and a small abstraction over WSGI) and will be useful for developers looking for flexibility or people who want to build something really simple.
If you want to find out more information about this framework, please visit its official website: http://bottlepy.org.
Help with Bottle and Python from Quintagroup
If you are interested in building your web page or application with the help of bottle.py framework, please contact Quintagroup for professional assistance.