Our Twisted Application Class - RunHome

A Very Simple Server

The module RunHome is the engine that makes our application run. Setting up a web server is very simple in Twisted, and since this example doesn't require anything too fancy, I'll explain what each line does in the following code without too much discussion afterwards.

Further Reading

twisted.internet.app is now deprecated!

I'd originally wrote this little piece using a deprecated module. Unfortunately I'm not quite sure where the documentation is for the new module twisted.application...but I promise to make it available here as soon as the information becomes available. In the meantime...

For more information on Site objects, Resource objects and trees, and lots of other material related to setting up a web application server using twisted.web see Configuring and Using the Twisted.Web Server

next prev toc