diesel_.py |
|
---|---|
Diesel-based WSGI server adapter. |
|
Imports |
from __future__ import unicode_literals, print_function
from diesel.protocols.wsgi import WSGIApplication
|
Server Adapter |
|
Diesel-based (greenlet) WSGI-HTTP server. As a minor note, this is crazy. Diesel includes Flask, too. |
def serve(application, host='127.0.0.1', port=8080):
|
Instantiate the server with a host/port configuration and our application. |
WSGIApplication(application, port=int(port), iface=host).run()
|