Have you ever needed to share some files real quick with real low setup? You can start up a web server from the current directory on port 8000 with a single line of python.
python -c "from SimpleHTTPServer import test; test()"
python -c "from SimpleHTTPServer import test; test()"
Comments
python -m SimpleHTTPServer
Very handy, thanks.
python -m pyftpdlib.FTPServer
see
http://billiejoex.altervista.org/pyftpdlib.html
python -c "from SimpleHTTPServer import test; import sys; sys.argv = [None, 19028]; test()"
python -c "from SimpleHTTPServer import t; t()" 19028