“Quick” and “Dirty” Network File Sharing with Python
Ever find yourself in need to share file over the network quickly, but find yourself lacking time to setup a proper NFS or samba share? Here’s a way to do this with the good old Python CLI.
First, go to the directory that you want to share, for example ~/Documents
[jk.cheng@thinksfree ~]$cd ~/Documents [jk.cheng@thinksfree Documents]$
Then run this command “python -m SimpleHTTPServer”
[jk.cheng@thinksfree Documents]$ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ... ...
You may access the folder from a remote computer using any webrowser using the url – http://60.53.190.30:8000/ (change the ip address or domain name accordingly)

You may find this technique offers limited options to share files, but its a real time saver!


