Daniel Keast

Python HTTP Server

Programming, Python

Python has an http server in its standard library, and if you invoke the module directly from the command line it conveniently serves the local directory:

$ python3 -m http.server
Serving HTTP on :: port 8000 (http://[::]:8000/) ...