Introduction to Twisted

Twisted is an event-driven network engine that can be used to develop asynchronous and publish/subscribe-based applications.

Twisted can be obtained from the PyPI repository at https://pypi.org/project/Twisted. You may need to install some additional packages on Windows and Linux hosts. The installation procedure is documented at https://twistedmatrix.com/trac. You can use the pip install twisted command to install Twisted and its dependencies.

If you are under an Debian/Ubuntu operating system, another way to download and install Twisted is to use the following command:

sudo apt-get install python-twisted

For other platforms, the latest versions of Twisted and its dependencies can be found at https://twistedmatrix.com/trac/wiki/Downloads.

Twisted is based on the paradigm of event-driven programming, meaning that Twisted users can write small predefined callbacks in the framework to perform complex tasks.

The Twisted design is based on the complete separation between logical protocols (which usually depend on the semantic connection based on streams or flows, such as HTTP or POP3) and transport in physical layers that are supported as semantics in streams (such as files, sockets libraries, or SSL).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset