Tornado – Whoosh

  Search functionality is often considered as "good to have" feature in website development, but search plays a crucial role of locating relevant information to the website visitors. Serach capabilities can be built into a website easily with modules such as lucene, Solr, ElasticSearch and Haystack among others. This blog discusses about whoosh and how … Continue reading Tornado – Whoosh

Tornado – 3rd Party Authentication – OpenID and OAuth

  You might have observed and experienced so many Website or Web APIs that let authenticate an user with their Google, Facebook or Twitter accounts. Well, this possible because of third party authentication (or a concept that I like referring as 'Authentication As A Service'). With the open standards (also referred as protocols) authentication like … Continue reading Tornado – 3rd Party Authentication – OpenID and OAuth

Tornado – Escape – Json

Tornado web server exports methods for escape/unescape html, xml, Json among others. This blog discusses about encoding and decoding JSON format. Tornado has the following methods: tornado.escape.json_encode(value) - JSON'ify the Python object passed to it as argument tornado.escape.json_decode(value) - Converts the JSON string into Python Object Here's a usage example: https://gist.github.com/3478215 In this example, 1. … Continue reading Tornado – Escape – Json

Tornado – Asynchronous Requests

Tornado is a non-blocking I/O web server. In Tornado, when the request handler serves the request made by the client, the request is closed by itself. Python decorator @tornado.web.asynchronous can be used to override the default behavior (of automatically finishing the request) and keep the request open. So, its the duty of the server developer … Continue reading Tornado – Asynchronous Requests

Python Tornado Webserver

Tornado is a open-source, fast, scalable non-blocking web server used for development of real time web services. It solves the c10k problem by using epoll library and can handle thousands of simultaneous connections. It runs as a single threaded non-blocking io loop that waits on requests (events) from users and servers them (hence also known … Continue reading Python Tornado Webserver