What is a faster alternative to Python’s http.server (or SimpleHTTPServer)?

Python’s http.server (or SimpleHTTPServer for Python 2) is a great way of serve the contents of the current directory from the command line: python -m http.server However, as far as web servers go, it’s very slooooow… It behaves as though it’s single threaded, and occasionally causes timeout errors when loading JavaScript AMD modules using RequireJS. … Read more

What is the Python 3 equivalent of “python -m SimpleHTTPServer”

What is the Python 3 equivalent of python -m SimpleHTTPServer? 7 From the docs: The SimpleHTTPServer module has been merged into http.server in Python 3.0. The 2to3 tool will automatically adapt imports when converting your sources to 3.0. So, your command is python -m http.server, or depending on your installation, it can be: python3 -m … Read more