12 lines
278 B
Python
12 lines
278 B
Python
#!/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()
|