launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #08739
Small REST project? Maybe Cornice...
Despite the performance issues that Launchpad's REST approach has
brought us, in my mind REST+JSON is still the best baseline
communications approach for web services, and for the back-end of JS
browser applications. We can learn from Launchpad's experience and make
sure that REST operations are geared first to address collections, and
second for individual records.
With that as background, I was enamored of the ideas I saw behind the
now-relatively-old Erlang Webmachine
(http://wiki.basho.com/Webmachine.html ; I think the state machine at
http://wiki.basho.com/images/http-headers-status-v3.png is cool).
Cornice, from Mozilla, based on Pyramid, is new, and looks like the
closest Python equivalent I've seen so far. I want to give it a closer
look later, and so I'm sending this out both as public service and
self-reminder. :-)
http://packages.python.org/cornice/
(Clojure has a webmachine-alike too,
https://github.com/banjiewen/Clothesline#readme :-) There is also a
Python version based on Django but a lightweight framework like Pyramid
seems like a better starting point for a webservice framework to me:
http://pypi.python.org/pypi/dj-webmachine).
Gary