The 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.
Python is an excellent language for web programming due to its flexibility and high-level functionality. Web frameworks can make programming web applications much simpler because they connect many of the components necessary for a robust web interface.
While some web structures endeavor to give everything that a client should need to use to build up an application, others attempt to remain off the beaten path while dealing with the vital, hard to actualize issues. The jug is a Python structure that falls into the second classification. In specialized term, It (source code) is a WSGI-consistent single source record web system with no outside conditions other than the Python standard library (stdlib) or Bottle framework is a quick, basic and lightweight WSGI miniaturized scale web-structure for Python. It is amazingly lightweight, yet makes it simple to create applications rapidly. It is appropriated as a solitary record module and has no conditions other than the Python Standard Library.
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. The single file which runs with both Python 2.5+ and 3.x.
WSGI:Bottle.py is the Web Server Gateway Interface framework and work with CGI and WSGI internals is easy. It can also run as a standalone web server or be used behind (“mounted on”) any web server which supports WSGI
Templates:Integrated template engine called SimpleTemplate Engine is fast (fast and pythonic built-in template engine) and built for Python users. There is support for mako, jinja2 and cheetah templates.
Speed optimizations:There are quick static courses (single direct query) and much of the time utilized courses are tried first. Stage particular elite record transmission offices, for example, the Unix sendfile(), are bolstered too. Bottle.py relies upon wsgi.file_wrapper given by WSGI-Server execution.
Should I use Bottle for web development?The bottle web framework is awesome for a few web development situations:
- Prototyping ideas
- Learning how web frameworks are built
- Building and running simple personal web applications