code
stringlengths
3
6.57k
hasattr(module, 'main')
util.run_wsgi_app(handler)
util.run_wsgi_app(handler)
TwistedServer(ServerAdapter)
run(self, handler)
ThreadPool()
thread_pool.start()
reactor.addSystemEventTrigger('after', 'shutdown', thread_pool.stop)
server.Site(wsgi.WSGIResource(reactor, thread_pool, handler)
reactor.listenTCP(self.port, factory, interface=self.host)
reactor.run()
DieselServer(ServerAdapter)
run(self, handler)
WSGIApplication(handler, port=self.port)
app.run()
GeventServer(ServerAdapter)
gevent.wsgi.WSGIServer()
run(self, handler)
isinstance(threading.local()
gevent.monkey.patch_all()
RuntimeError(msg)
self.options.pop('fast', None)
wsgi.WSGIServer(address, handler, **self.options)
signal.signal(signal.SIGINT, lambda s, f: server.stop()
server.serve_forever()
GeventSocketIOServer(ServerAdapter)
run(self,handler)
server.SocketIOServer(address, handler, **self.options)
serve_forever()
GunicornServer(ServerAdapter)
run(self, handler)
int(self.port)
config.update(self.options)
GunicornApplication(Application)
init(self, parser, opts, args)
load(self)
GunicornApplication()
run()
EventletServer(ServerAdapter)
run(self, handler)
patcher.is_monkey_patched(os)
eventlet.monkey_patch()
RuntimeError(msg)
in ('backlog', 'family')
self.options.pop(arg)
wsgi.server(listen(address, **socket_args)
wsgi.server(listen(address)
RocketServer(ServerAdapter)
run(self, handler)
Rocket((self.host, self.port)
server.start()
BjoernServer(ServerAdapter)
run(self, handler)
run(handler, self.host, self.port)
AutoServer(ServerAdapter)
run(self, handler)
sa(self.host, self.port, **self.options)
run(handler)
load(target, **namespace)
func()
pack.mod.func()
import_string('re:compile(x)
target.split(":", 1)
else (target, None)
__import__(module)
target.isalnum()
getattr(sys.modules[module], target)
module.split('.')
eval('%s.%s' % (module, target)
load_app(target)
default_app.push()
load(target)
callable(rv)
default_app.remove(tmp)
subclass. (default: `wsgiref`)
one. (default: 127.0.0.1)
privileges. (default: 8080)
seconds (default: 1)
os.environ.get('BOTTLE_CHILD')
tempfile.mkstemp(prefix='bottle.', suffix='.lock')
os.close(fd)
os.path.exists(lockfile)
os.environ.copy()
subprocess.Popen(args, env=environ)
p.poll()
os.utime(lockfile, None)
time.sleep(interval)
p.poll()
os.path.exists(lockfile)
os.unlink(lockfile)
sys.exit(p.poll()
os.path.exists(lockfile)
os.unlink(lockfile)
_debug(debug)
default_app()
isinstance(app, basestring)
load_app(app)
callable(app)
ValueError("Application is not callable: %r" % app)
isinstance(plugin, basestring)