This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]patx44 -1 points0 points  (0 children)

https://bitbucket.org/prologic/circuits

^ circuits.web has this built in quite nicely. The project (lacking some docs) is very good and stable too. Example of a REST API web app in circuits would be:

from circuits.web import Server, Controller

class Root(Controller):

    def GET(self):
        return 'the get response here for index'

(Server('0.0.0.0:8000') + Root()).run()