MCPcopy Create free account
hub / github.com/datapane/datapane / run

Method run

python-client/src/datapane/_vendor/bottle.py:3452–3470  ·  view source on GitHub ↗
(self, handler)

Source from the content-addressed store, hash-verified

3450 """ Untested. See http://gunicorn.org/configure.html for options. """
3451
3452 def run(self, handler):
3453 from gunicorn.app.base import BaseApplication
3454
3455 if self.host.startswith("unix:"):
3456 config = {'bind': self.host}
3457 else:
3458 config = {'bind': "%s:%d" % (self.host, self.port)}
3459
3460 config.update(self.options)
3461
3462 class GunicornApplication(BaseApplication):
3463 def load_config(self):
3464 for key, value in config.items():
3465 self.cfg.set(key, value)
3466
3467 def load(self):
3468 return handler
3469
3470 GunicornApplication().run()
3471
3472
3473class EventletServer(ServerAdapter):

Callers

nothing calls this directly

Calls 3

GunicornApplicationClass · 0.85
updateMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected