Introduction to CherryPy Last Updated : 27 Feb, 2020 Comments Improve Suggest changes Like Article Like Report CherryPy is a popular framework of Python. Using CherryPy, web applications can be built in a faster and more reliable way. It is also called a web application library. It is known for its simplicity as it is based on object-oriented Python programming, resulting in smaller source code in less time. It is one of the oldest frameworks of Python, the very first version being released in June 2002. This framework is mainly for the developers who want to create portable database-driven web application using Python, as it provides Create, Retrieve, Update and Delete functionalities. Note: Before proceeding with CherryPy, you should have a good understanding of Model-view-controller and Object-Oriented-Programming. Why CherryPy? As we know, Object-Oriented-Programming in itself has many advantages. The Extensive Support Libraries in Python and its Open Source and Community Development along with OOP gives a strong base to CherryPy. Simplicity: The complexity is reduced as the software object model objects and hence the code structure is very legible. Modular: Each object forms a separate entity whose internal workings are decoupled from other parts of the system. This enables us to consistently improve our solutions and it leads to efficiency in development through reuse. Modifiability: Minor changes can be easily made as changes inside a class do not affect any other part of a program. Extensibility: New objects can be introduced and existing ones can be modified to add new features or update existing ones. Data Re-usability: The objects can be used in other programs. Data Redundancy: Inheritance can be applied if you need a same functionality in multiple class. Data hiding: Implementation details are hidden from other modules and other modules has a clearly defined interface. Security: Using data hiding and abstraction we are providing necessary data only it mean we are maintaining security. Open Source: It is a community-maintained, open-source project hosted at Github. Deployment: It binds HTTP protocol into an API and includes its own production-ready HTTP server for hosting applications in a cost effective manner. The project founder, Remi Delon wished to make CherryPy as Pythonic as possible so that the developer can use the framework as any regular Python module. Take a look at the most basic application, a "Hello World" program with CherryPy: Python3 1== import cherrypy class Root(object): @cherrypy.expose def index(self): return "Hello World !" if __name__ == '__main__': cherrypy.quickstart(Root(), '/') Output: CherryPy takes an HTTP request and locates the most appropriate Python function or method that matches the request’s URL. Comment More infoAdvertise with us Next Article Introduction to CherryPy T tanishkagupta1 Follow Improve Article Tags : Python Programming Language Web Technologies python-modules Practice Tags : python Similar Reads Environment setup for CherryPy CherryPy is a popular framework of Python. Using CherryPy, web applications can be built in a faster and more reliable way. It is also called a web application library. It is known for its simplicity as it is based on object-oriented Python programming, resulting in smaller source code in less time. 2 min read Introduction to Python for Absolute Beginners Are you a beginner planning to start your career in the competitive world of Programming? Looking resources for Python as an Absolute Beginner? You are at the perfect place. This Python for Beginners page revolves around Step by Step tutorial for learning Python Programming language from very basics 6 min read How to perform multiplication using CherryPy in Python? 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 sourc 2 min read Perform addition and subtraction using CherryPy 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 sourc 2 min read Introduction to JustPy | A Web Framework based on Python JustPy is a web framework that leverages the power of Python to create web applications effortlessly. In this article, we'll explore JustPy, its features, and why it's gaining attention among developers. What is the JustPy Module of Python?The JustPy module of Python is a web framework like Django b 8 min read Explain Controls in CherryFramework CherryFramework is a popular and powerful WordPress theme framework that offers a wide range of features and tools for building websites. Among these features is the JavaScript library that comes bundled with the framework, known as CherryFramework JS. This library provides developers with a set of 8 min read Python Projects - Beginner to Advanced Python is one of the most popular programming languages due to its simplicity, versatility, and supportive community. Whether youâre a beginner eager to learn the basics or an experienced programmer looking to challenge your skills, there are countless Python projects to help you grow.Hereâs a list 10 min read Top 10 Python Libraries For Cybersecurity In today's society, in which technological advances surround us, one of the important priorities is cybersecurity. Cyber threats have been growing quickly, and it has become challenging for cybersecurity experts to keep up with these attacks. Python plays a role here. Python, a high-level programmin 15+ min read Python Version History Python, one of the most popular programming languages today, has a rich history of development and evolution. From its inception in the late 1980s to its current status as a versatile and powerful language, Python's version history reflects the language's adaptability and the community's dedication 5 min read Top 7 Python Project Ideas for Beginners in 2024 Python is one of the most popular programming languages due to its simplicity, versatility, and supportive community. Whether youâre a beginner eager to learn the basics or an experienced programmer looking to challenge your skills, there are countless Python projects to help you grow.Here is the li 6 min read Like