def http(reloader: bool, port: int, host: str, brain_name: str) -> None: "Run a server for mutliheaded (multiplex) pyborg" brain_path = resolve_brain(brain_name) bottle.install(BottledPyborg(brain_path=brain_path)) bottle.run(host=host, port=port, reloader=reloader) bottle.default_app().close()
def http(reloader, port, host, brain): "Run a server for mutliheaded (multiplex) pyborg" brain_path = resolve_brain(brain) bottle.install(BottledPyborg(brain_path=brain_path)) bottle.run(host=host, port=port, reloader=reloader) bottle.default_app().close()