Twister is designed such that code is written as functions that respond to events happening. It is a low-layer library, which does not provide web framework functionality. It cannot be compared to Django or Ruby on Rails, see previous blog post.
Although Twisted provides functionality to serve web pages,
apache is a better web server and
bind is a better DNS server. Twisted’s selling feature is interconnecting these functions in a single process because of Twisted’s modular architecture. Other servers built ground up from C and have their own idiosyncratic connections.
Some of Twisted’s functionality are listed below.
wsgi – standard python interface
twistd = wsgi container
IRC ChannelSSL can be used instead of TCP.
TCP Write Back Example
This example writes the same TCP stream back as it is received.
To ensure that twisted is installed correctly, the following unit tests are run: