Tag: CLIShell

TUTORIAL: Command Line Interfaces

Some of you writing servers are only now realizing how limited your use of normal stdin API’s are when working with Twisted. This tutorial shows you how to use Twisted’s command line receiver as well as my more advanced command line interface module. Twisted’s LineReceiver You generally can’t use blocking reads in Twisted and most of the stdin tools you’re used to are, in fact, blocking. For example, “rawinput()” doesn’t…