
Twisted
Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it:
WebSockets — Twisted 25.5.0 documentation
Let’s use Twisted to create a simple websocket server, and then build a web-browser based client to communicate with it. To begin with, we will need a folder with 3 files in it.
Reactor Overview — Twisted 25.5.0 documentation
2025年6月7日 · Reactor Overview This HOWTO introduces the Twisted reactor, describes the basics of the reactor and links to the various reactor interfaces. Reactor Basics The reactor is …
Using Processes — Twisted 25.5.0 documentation
Along with connection to servers across the internet, Twisted also connects to local processes with much the same API. The API is described in more detail in the documentation of:
Examples — Twisted 25.5.0 documentation
stdiodemo.py - example using stdio, Deferreds, LineReceiver and twisted.web.client. ptyserv.py - serve shells in pseudo-terminals over TCP courier.py - example of interfacing to Courier’s mail …
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, …
Creating a custom server — Twisted 16.1.1 documentation
Creating a custom server ¶ The builtin DNS server plugin is useful, but the beauty of Twisted Names is that you can build your own custom servers and clients using the names components.
Overview of Twisted Internet — Twisted 25.5.0 documentation
2025年6月7日 · 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 …
Twisted Conch (SSH and Telnet) — Twisted 25.5.0 documentation
2025年6月7日 · Twisted Conch (SSH and Telnet) Developer guides: documentation on using Twisted Conch to develop your own applications Examples: short code examples using …
Twisted Documentation: Logging with twisted.python.log
The twisted.python.logfile module provides some standard classes suitable for use with startLogging, such as DailyLogFile, which will rotate the log to a new file once per day.