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.

2 Answers 2

4

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

Sign up to request clarification or add additional context in comments.

1 Comment

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.
3

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...

3 Comments

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.
+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.
@Martin: As you are already using Storm ORM, you should use frameworks which are ORM-agnostics. Pylons, CherryPy and Flask are some of the options. en.wikipedia.org/wiki/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.