Building asynchronous network applications with Twisted
Twisted is an event-driven network engine written in Python. Twisted can be used to develop asynchronous and publish/subscribe based Python applications.
Getting ready
You need to install the third-party Python module, twisted. This can be grabbed from PyPI (https://pypi.org/project/Twisted/). Both on Windows and Linux hosts, you may need to install some additional packages. The installation procedure is documented at https://twistedmatrix.com/trac/.
Follow the following guidelines to install Twisted in your Debian/Ubuntu based Linux distributions.
Twisted suggests against installing anything into global site-package. It recommends using virtualenv to set up isolated publish/subscribe modules. virtualenv is a product aimed to create isolated execution environments for Python. While we can indeed make Twisted work by directly installing the bundles using pip, we respect the suggestion of Twisted, and follow their installation guidelines...