Web Server ExampleΒΆ

web.py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/usr/bin/env python
   
from circuits.web import Server, Controller

class Root(Controller):

    def index(self):
        return "Hello World!"

(Server(8000) + Root()).run()

Previous topic

IRC Bot Example

Next topic

Web Framework

This Page