Did I find the right examples for you? yes no

All Samples(26)  |  Call(0)  |  Derive(0)  |  Import(26)
I contain PythonScript, which is a very simple python script resource.

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/web.py   hortonworks-sandbox(Download)
 
from twisted.internet import reactor
from twisted.web import static, server, vhost, twcgi, script, trp
 
root = static.File("static")

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/web.py   oh-mainline(Download)
 
from twisted.internet import reactor
from twisted.web import static, server, vhost, twcgi, script
 
root = static.File("static")

src/t/w/Twisted-13.2.0/doc/web/examples/web.py   Twisted(Download)
 
from twisted.internet import reactor
from twisted.web import static, server, vhost, twcgi, script
 
root = static.File("static")

src/t/w/Twisted-13.2.0/doc/web/examples/rootscript.py   Twisted(Download)
"""
 
from twisted.web import vhost, static, script, server
from twisted.application import internet, service
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/rootscript.py   hortonworks-sandbox(Download)
from twisted.web import vhost, static, script
 
default = static.Data('text/html', '')
default.putChild('vhost', vhost.VHostMonsterResource())
resource = vhost.NameVirtualHost()

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/rootscript.py   oh-mainline(Download)
from twisted.web import vhost, static, script
 
default = static.Data('text/html', '')
default.putChild('vhost', vhost.VHostMonsterResource())
resource = vhost.NameVirtualHost()

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/web/tap.py   hortonworks-sandbox(Download)
 
# Twisted Imports
from twisted.web import server, static, twcgi, script, demo, distrib, trp, wsgi
from twisted.internet import interfaces, reactor
from twisted.python import usage, reflect, threadpool

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/web/tap.py   oh-mainline(Download)
 
# Twisted Imports
from twisted.web import server, static, twcgi, script, demo, distrib, wsgi
from twisted.internet import interfaces, reactor
from twisted.python import usage, reflect, threadpool

src/t/w/Twisted-13.2.0/twisted/web/tap.py   Twisted(Download)
 
# Twisted Imports
from twisted.web import server, static, twcgi, script, demo, distrib, wsgi
from twisted.internet import interfaces, reactor
from twisted.python import usage, reflect, threadpool

src/z/o/zope.app.twisted-3.5.0/src/twisted/web/tap.py   zope.app.twisted(Download)
 
# Twisted Imports
from twisted.web import server, static, twcgi, script, demo, distrib, trp
from twisted.internet import interfaces
from twisted.python import usage, reflect

  1 | 2 | 3  Next