3 ms·
python3 -m http.server 8080 is a useful one-liner to serve a directory over http. There's no good reason to have it in the standard library — mapping directori
by obtu 15y ago
python3 -m http.server 8080
is a useful one-liner to serve a directory over http. There's no good reason to have it in the standard library — mapping directories to html listings and http paths to filesystem paths is a bit idiosyncratic — but now that it's there I'm happy to use it.