Twisted Learn about the Twisted development process and how to contribute Help improve Twisted on Windows!
Writing Servers — Twisted 25. 5. 0 documentation This document explains how you can use Twisted to implement network protocol parsing and handling for TCP servers (the same code can be reused for SSL and Unix socket servers) There is a separate document covering UDP
Overview of Twisted Internet — Twisted 25. 5. 0 documentation 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 care about which event loop is running
Welcome to the Twisted documentation! — Twisted 25. 5. 0 documentation Installing Twisted; Twisted Core; Twisted Conch (SSH and Telnet) Twisted Mail (SMTP, POP, and IMAP) Twisted Names (DNS) Twisted Pair; Twisted Web; Twisted Words (IRC and XMPP) API Reference; Development of Twisted; Quick links Report a security issue; Security Procedure for Developers; Security Audit; Twisted Community; API Reference; GitHub; PyPI
Getting Connected with Endpoints — Twisted 24. 10. 0. post0 documentation Since these APIs just take a string, they provide flexibility: if Twisted adds support for new types of endpoints (for example, IPv6 endpoints, or WebSocket endpoints), your application will automatically be able to take advantage of them with no changes to its code
Using the Twisted Web Client — Twisted 18. 4. 0 documentation This document describes how to use the HTTP client included in Twisted Web After reading it, you should be able to make HTTP and HTTPS requests using Twisted Web You will be able to specify the request method, headers, and body and you will be able to retrieve the response code, headers, and body
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: twisted internet interfaces IReactorProcess
Using the Twisted Application Framework The major tool that manages Twisted applications is a command-line utility called twistd twistd is cross platform, and is the recommended tool for running Twisted applications The core component of the Twisted Application infrastructure is the twisted application service Application() object – an object which represents your application
Reactor Overview — Twisted 25. 5. 0 documentation This HOWTO introduces the Twisted reactor, describes the basics of the reactor and links to the various reactor interfaces Reactor Basics¶ The reactor is the core of the event loop within Twisted – the loop which drives applications using Twisted
Examples — Twisted 25. 5. 0 documentation testlogging py - use twisted python log to log errors to standard out rotatinglog py - example of log file rotation POSIX Specific Tricks¶ sendfd py, recvfd py - send and receive file descriptors over UNIX domain sockets Miscellaneous¶ shaper py - example of rate-limiting your web server