blob: ed3c997038f0ab26ba2e0baff94ca77ecac3b00f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
CherryPy - A Minimalist Python Web Framework
============================================
.. toctree::
:hidden:
intro.rst
install.rst
tutorials.rst
basics.rst
advanced.rst
config.rst
extend.rst
deploy.rst
contribute.rst
glossary.rst
CherryPy is a pythonic, object-oriented web framework.
CherryPy allows developers to build web applications in much the
same way they would build any other object-oriented Python program.
This results in smaller source code developed in less time.
CherryPy is now more than seven years old and it is has proven to
be very fast and stable. It is being used in production by many
sites, from the simplest to the most demanding.
A CherryPy application typically looks like this:
.. code-block:: python
import cherrypy
class HelloWorld(object):
@cherrypy.expose
def index(self):
return "Hello World!"
cherrypy.quickstart(HelloWorld())
|