Skip to main content

Object-Oriented HTTP framework

Project description

SWUbanner https://img.shields.io/pypi/v/cherrypy.svg CherryPy is available as part of the Tidelift Subscription https://img.shields.io/badge/Python%203%20only-pip%20install%20%22%3E%3D18.0.0%22-%234da45e.svg https://img.shields.io/badge/Python%203%20and%202-pip%20install%20%22%3C18.0.0%22-%2349a7e9.svg https://readthedocs.org/projects/cherrypy/badge/?version=latest https://img.shields.io/badge/StackOverflow-CherryPy-blue.svg https://img.shields.io/badge/Mailing%20list-cherrypy--users-orange.svg https://img.shields.io/gitter/room/cherrypy/cherrypy.svg https://img.shields.io/travis/cherrypy/cherrypy/master.svg?label=Linux%20build%20%40%20Travis%20CI https://circleci.com/gh/cherrypy/cherrypy/tree/master.svg?style=svg https://img.shields.io/appveyor/ci/CherryPy/cherrypy/master.svg?label=Windows%20build%20%40%20Appveyor https://img.shields.io/badge/license-BSD-blue.svg?maxAge=3600 https://img.shields.io/pypi/pyversions/cherrypy.svg stable https://api.codacy.com/project/badge/Grade/48b11060b5d249dc86e52dac2be2c715 codecov

Welcome to the GitHub repository of CherryPy!

CherryPy is a pythonic, object-oriented HTTP framework.

  1. It allows building web applications in much the same way one would build any other object-oriented program.

  2. This design results in more concise and readable code developed faster. It’s all just properties and methods.

  3. It is now more than ten years old and has proven fast and very stable.

  4. It is being used in production by many sites, from the simplest to the most demanding.

  5. And perhaps most importantly, it is fun to work with :-)

Here’s how easy it is to write “Hello World” in CherryPy:

import cherrypy

class HelloWorld(object):
    @cherrypy.expose
    def index(self):
        return "Hello World!"

cherrypy.quickstart(HelloWorld())

And it continues to work that intuitively when systems grow, allowing for the Python object model to be dynamically presented as a website and/or API.

While CherryPy is one of the easiest and most intuitive frameworks out there, the prerequisite for understanding the CherryPy documentation is that you have a general understanding of Python and web development. Additionally:

If the docs are insufficient to address your needs, the CherryPy community has several avenues for support.

For Enterprise

CherryPy is available as part of the Tidelift Subscription.

The CherryPy maintainers and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.

Learn more.

Contributing

Please follow the contribution guidelines. And by all means, absorb the Zen of CherryPy.

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CherryPy-18.9.0.tar.gz (631.9 kB view hashes)

Uploaded Source

Built Distribution

CherryPy-18.9.0-py3-none-any.whl (348.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page