from twisted.web.resource import Resource class ExampleResource(Resource): def render(self, request): return """\ Welcome To Twisted Python This is a demonstration of embedded python in a webserver. """ resource = ExampleResource()