github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/docs/examples/example-python3-fileserver/server.py (about) 1 import http.server 2 import socketserver 3 4 PORT = 8080 5 6 Handler = http.server.SimpleHTTPRequestHandler 7 8 httpd = socketserver.TCPServer(("", PORT), Handler) 9 10 print("serving at port", PORT) 11 httpd.serve_forever()