Sometimes when working on JavaScript-based applications or static websites, it's necessary to be able to serve the content of a directory directly from disk.
The Python standard library has a ready-made HTTP server that handles requests, mapping them to files in a directory, so we can quickly roll our own HTTP server to write websites without the need to install any other tool.