On 12:25 pm, email@example.com wrote:
You probably want to read this:
There's a number of ways you can use twistd web, for example with a tac file, but personally I always opt for using a Twisted plugin, so you instead do twistd mything :)
There's some confused language here.
"twistd web" sounds a lot like the command line invocation of `twistd´ to use the `web´ plugin - which sets up an HTTP server using Twisted web.
The Twisted plugin (twisted.plugin) system is used by twistd to implement its support for extensible command line parsing. "twistd web" is implemented using a twistd plugin (twisted.plugins.twisted_web.TwistedWeb and twisted.web.tap) which is itself implemented using twisted.plugin.
I think the OP may have been asking how to use "twistd web" to accomplish what his Python snippet accomplished.