Created
June 10, 2015 23:21
-
-
Save prologic/9eec2941e89b5bff4cc8 to your computer and use it in GitHub Desktop.
Sample event flow of a circuits.web Hello World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from circuits import Debugger | |
from circuits.web import Controller, Server | |
class Root(Controller): | |
def index(self, *args, **kwargs): | |
return "Hello World!" | |
(Server(("0.0.0.0", 9000)) + Root() + Debugger()).run() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
circuits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup
Run
Test