

def serve(ip, port, application, ssl=None, processes=1, **kwargs):
    "\n    Serve a wsgi app (any wsgi app) through with either werkzeug's runserver\n    or the one that comes with python. Setting `processes` to anything other than 1\n    will prevent the debigger from working.\n    "
    try:
        from werkzeug.serving import run_simple
        print('Using Werkzeug run_simple')
        run_simple(ip, port, application, ssl_context=ssl, processes=processes, **kwargs)
        return
    except ImportError:
        pass
    from wsgiref.simple_server import make_server
    server = make_server(ip, port, application)
    print(('Serving on %s:%s, using built in Python server' % (kwargs, port)))
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass

dataset/ETHPy150Open priestc/giotto/giotto/controllers/http.py serve/VarMisuse@98/230 `ip`->`kwargs`