python basic server code example Example 1: python3 webserver command line python3 -m http.server Example 2: python http server command line python -m SimpleHTTPServer