Simple webserver

The SimpleHTTPServer module can be used in the following manner in order to set up a very basic web server serving files relative to the current directory.

The SimpleHTTPServer module can also be invoked directly using the -m switch of the interpreter with a port number argument. Similar to the previous example, this serves the files relative to the current directory.