code: def serve(application, host='127.0.0.1', port=8080):
  	
  	
  	# Instantiate the server with our configuration and application.
  	server = CherryPyWSGIServer((host, int(port)), application, server_name=host)
  	
  	# Try to be handy as many terminals allow clicking links.
  	print("serving on http://{0}:{1}".format(host, port))
  	
  	# Bind and launch the server; this is a blocking operation.
  	try:
  		server.start()
  	except KeyboardInterrupt:
  		server.stop()
docs: CherryPy-based WSGI-HTTP server.