#!/usr/bin/env python3 import http.server import socketserver PORT = 8899 Handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), Handler) as httpd: print(f"Serving HTTP on port {PORT} (http://localhost:{PORT}/)") httpd.serve_forever()