eventlet_.py

Eventlet-based WSGI server adapter.

Imports

from __future__ import unicode_literals, print_function

from eventlet import listen
from eventlet.wsgi import server

Server Adapter

Eventlet-based WSGI-HTTP server.

For a more fully-featured Eventlet-capable interface, see also Spawning.

def serve(application, host='127.0.0.1', port=8080):
	

Instantiate the server with a bound port and with our application.

	server(listen(host, int(port)), application)