Untitled
unknown
python
a year ago
366 B
4
Indexable
Never
from http.server import HTTPServer, SimpleHTTPRequestHandler def run(server_class=HTTPServer, handler_class=SimpleHTTPRequestHandler): """Entrypoint for python server""" server_address = ("0.0.0.0", 8000) httpd = server_class(server_address, handler_class) print("launching server...") httpd.serve_forever() if __name__ == "__main__": run()