views:

298

answers:

2

I'm looking for a python equivalent of ruby's halcyon - a framework focused on "web service"-type applications rather than html-page-oriented ones. Google brings up a lot of example code and experiments, but I couldn't find anything that people were using in production and hammering on.

Failing that, what is the best web framework to use for this purpose? I'm looking for something small and lightweight, emphasising robustness and speed rather than features. Also, by speed I simply want a low latency overhead, not the ability to handle thousands of requests per second.

+3  A: 

Why not use django? You can return a json with it, so it's not a problem. At the same time, you get good, well-tested framework...

kender
django struck me as a bit heavyweight and monolithic - it seems more a rails equivalent, where i'd have to use it for everything or go against its grain. for instance, i'm already using storm as an orm, but i couldn't see any easy way to just swap out django's orm and swap in storm.
Martin DeMello
+1: JSON web services in Django works out really well. Except for authentication, where you do have to roll your own. But I'd rather roll my own in the Django framework than roll my own from scratch.
S.Lott
+3  A: 

Based on you comment, it sounds like one of the microframeworks may be what you're looking for.

Hank Gay
thanks, will take a good look at them. mnml and web.py both look promising, and the latter seems to have gotten a lot of third-party use.
Martin DeMello