Twisted code examples
Simple Echo server and client
Chat
Echo server & client variants
AMP server & client variants
Perspective Broker
ROW (Twisted Enterprise)
- row_example.py - using twisted.enterpise.row to
load objects from a database and manipulate them.
- row_schema.sql - sample statements to populate
tables for row_example.py
- row_util.py - definitions of row classes for
row_example.py
Cred
- cred.py - Authenticate a user with an in-memory
username/password database
- dbcred.py - Using a database backend to authenticate
a user
GUI
FTP examples
- ftpclient.py - example of using the FTP client
- ftpserver.py - create an FTP server which serves
files for anonymous users from the working directory and serves files for
authenticated users from
/home.
Logging
Miscellaneous
- shaper.py - example of rate-limiting your web server
- stdiodemo.py - example using stdio, Deferreds,
LineReceiver and twisted.web.client.
- mouse.py - example using MouseMan protocol with the
SerialPort transport
- ptyserv.py - serve shells in pseudo-terminals over
TCP
- courier.py - example of interfacing to Courier's
mail filter interface
- longex.py - example of doing arbitarily long
calculations nicely in Twisted
- longex2.py - using generators to do long
calculations
- stdin.py - reading a line at a time from standard
input without blocking the reactor.
- filewatch.py - write the content of a file to
standard out one line at a time
- shoutcast.py - example Shoutcast client
- gpsfix.py - example using the SerialPort transport
and GPS protocols to display fix data as it is received from the device
- wxacceptance.py - acceptance tests for
wxreactor
- postfix.py - test application for
PostfixTCPMapServer
索引页
版本:9.0.0