Get flash to fully experience Pearltrees
Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed . The FriendFeed application is written using a web framework that looks a bit like web.py or Google's webapp , but with additional tools and optimizations to take advantage of the underlying non-blocking infrastructure. The framework is distinct from most mainstream web server frameworks (and certainly most Python frameworks) because it is non-blocking and reasonably fast. Because it is non-blocking and uses epoll or kqueue , it can handle thousands of simultaneous standing connections, which means it is ideal for real-time web services.
Restkit is an HTTP resource kit for Python . It allows you to easily access to HTTP resource and build objects around it. It's the base of couchdbkit a Python CouchDB framework. from restkit import Resource try: import simplejson as json except ImportError: import json # py2.6 only class TwitterSearch(Resource): def __init__(self, pool_instance=None, **kwargs): search_url = "http://search.twitter.com" super(TwitterSearch, self).__init__(search_url, follow_redirect=True, max_follow_redirect=10, pool_instance=pool_instance, **kwargs) def search(self, query): return self.get('search.json', q=query) def request(self, *args, **kwargs): resp = super(TwitterSearch, self).request(*args, **kwargs) return json.loads(resp.body_string()) if __name__ == "__main__": s = TwitterSearch() print s.search("gunicorn") Reusing connections is good.