
Twisted
Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it:
Reactor Overview — Twisted 25.5.0 documentation
Jun 7, 2025 · The reactor is the core of the event loop within Twisted – the loop which drives applications using Twisted. The event loop is a programming construct that waits for and …
Examples — Twisted 25.5.0 documentation
longex.py - example of doing arbitrarily long calculations nicely in Twisted longex2.py - using generators to do long calculations stdin.py - reading a line at a time from standard input …
Overview of Twisted Internet — Twisted 25.5.0 documentation
Jun 7, 2025 · Twisted Internet is a collection of compatible event-loops for Python. It contains the code to dispatch events to interested observers and a portable API so that observers need not …
Twisted Documentation: The Basics
Twisted programs usually work with twisted.application.service.Application. This class usually holds all persistent configuration of a running server -- ports to bind to, places where …
WebSockets — Twisted 25.5.0 documentation
Twisted Web provides support for the WebSocket protocol for clients (such as web browsers) to connect to resources and receive bi-directional communication with the server.
Twisted Documentation: Test-driven development with Twisted
Testing protocols without the use of real network connections is both simple and recommended when testing Twisted code. Even though there are many tests in Twisted that use the network, …
Writing Servers — Twisted 25.5.0 documentation
A Twisted protocol handles data in an asynchronous manner. The protocol responds to events as they arrive from the network and the events arrive as calls to methods on the protocol.
The Twisted Plugin System — Twisted 15.2.1 documentation
The Twisted Plugin System ¶ The purpose of this guide is to describe the preferred way to write extensible Twisted applications (and consequently, also to describe how to extend applications …
Asynchronous Programming with Twisted
This document is a introduction to the asynchronous programming model, and to Twisted's Deferred abstraction, which symbolises a 'promised' result and which can pass an eventual …