1) What is CherryPy?
CherryPy is a web framework used for Python. It provides a friendly interface for Http protocol for Python developer.
2) Why we use CherryPy?
CherryPy has following strength:
- Simplicity: It makes less line to code for project development.
- Open source: CherryPy framework is an open source.
- Power: It provides powerful tools and plugins which make to develop world-class application.
- Community Help: It provide full support on different questions and answers by devoted community.
- Deployment: CherryPy has its own production-ready HTTP server which make cost effective to host application.
3) What are the installation set up for CherryPy?
There are various installation set up are available for CherryPy in package form.
- Using Tarball
- Using easyinstall
- Using Subversion
4) What are the basic requirements for CherryPy installation?
These are the basic requirement for CherryPy installation:
- Python with version 2.0 or above
- CherryPy 3.0
5) What is web server in CherryPy?
The web server acts as the gateway to the application which handles all the requests and response.
Following command is used to start web server:
- cherryPy.server.quickstart()
6) What does internal engine in CherryPy?
Following activities are performed by internal engine in CherryPy.
- Creation and management of request and response objects.
- Controlling and managing the CherryPy objects.
7) Define multithreaded application server?
CherryPy provide multithreaded environment to gets and sets a value into the CherryPy namespace.
8) What is CherryPy Toolbox?
It is a built-in tool which offers a single interface to call the CherryPy library. This tool is used in three different ways:
- From configuration settings
- As a Python decorator or via special _cp_config attribute of a page handler.
- As a Python callable that can be applied from within any function
9) What is Basic Authentication Tool?
The purpose of this tool is to provide basic authentication to application. This tool uses the following arguments:
10) What is Caching Tool?
This tool is used to provide memory caching to CherryPy generated content. This tool uses the following arguments:
- invalid_methods
- cache_Class
11) What is Decoding Tool?
The purpose of this tool is to decode the incoming request parameters. Following arguments are used in this tool:
- encoding
- Default_encoding
12) Define CherryPy Web Services?
A web services is a web based components. It helps to exchange data between applications. There are various types of web service available:
13) What are the components of CherryPy?
CherryPy has the following three components:
- cherrypy.engine: It controls prcess startup and event handling.
- cherrypy.server: It controls and configures server (HTTP server).
- cherrypy.tools: It is like a toolbox that is orthogonal to execute a HTTP request.
14) What is Atom Publication Protocol (APP)?
APP is an application level protocol. It allows the publishing and editing of web resources. It also performs set of operations between APP service and user-agent. It uses Atom XML-document format for message unit between APP server and client.
15) What is Kid template?
Kid is a simple template engine written in Python. While creating the template for first time, Kid creates a Python module which can be works as a cached version of the template. Kid template includes the name of the template to be processed which is mandatory.