Untitled
unknown
python
2 years ago
366 B
8
Indexable
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()
Editor is loading...