CherryPy also known as a web application library is a Python web framework that provides a friendly interface to the HTTP protocol for Python developers. It allows developers to build web applications the same way as in traditional object-oriented Python programs. Thereby, resulting in smaller source code developed in no time.
This framework is mainly for the developers who want to create a portable database-driven web application using Python, as it provides Create, Retrieve, Update and Delete functionalities.
The basic requirements for the installation of CherryPy include:
- Python with version 2.4 or above
- Cherrypy 3.0
To install cherrypy run the following command in terminal:
pip install cherrypy
- Create user interface to take input from user.
- Write cherrypy program to perform required operations
HTML code to take input from the user-
Cherrypy code for addition
Code for subtraction
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.