Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(3)  |  Import(3)

src/c/i/circuits-3.0.0.dev/examples/web/jsoncontroller.py   circuits(Download)
#!/usr/bin/env python
 
from circuits.web import Server, JSONController
 
 
class Root(JSONController):

src/i/r/ircnotifier-0.0.2/ircnotifier/webapi.py   ircnotifier(Download)
from json import loads
 
from circuits.web import JSONController
from circuits.net.protocols.irc import PRIVMSG
 
 
class WebAPI(JSONController):

src/c/i/circuits-3.0.0.dev/tests/web/test_json.py   circuits(Download)
#!/usr/bin/env python
 
from json import loads
 
from circuits.web import JSONController, Sessions
class Root(JSONController):
 
    def index(self):
        return {"success": True, "message": "Hello World!"}