view pythonServer.py @ 1637:fb6354c5d3cf

Fixed metric collection, listening time, for looping sources
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 27 May 2015 18:53:34 +0100
parents a22cf46a9141
children e08f2b155d8b
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()