Quick and Dirty Network File sharing with Python
Posted by mypapit on 2 Mar 2009 in Computers, Internet Stuff, Open Source, Python, Server, Tips & Guides
|
|
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 ~/Desktop
- Then run this command "python -m SimpleHTTPServer"
- You may access the folder from a remote computer using any webrowser using the url – http://192.168.1.20:8000, change the ip address accordingly

You may find this technique offers limited options to share files, but its a real time saver!
Tags: file sharing, filesharing, guides, linux, network, network sharing, Python, quicktips, samba, Server, sharing, tips, ubuntu, webserver, websiteKeep updated with this website! : Subscribe to your email
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
Recommended Reading
- jar2jad – My first python application
- youtube-dl – handy for downloading youtube videos in Linux
- How to find cause of heavy usage on your Apache webserver
- Enable Network Printer Sharing with Ubuntu Linux computers
- Nokia releases Python for S60 source code (pys60)
- Quick Coding Python in your mobile phone with T9 Predictive Text















March 6th, 2009 at 10:31 am
cool!
Its been awhile I didn’t see u online irc, where have u been?
March 12th, 2009 at 9:42 am
Cool!!! I find it is useful for me when i need share some files.
March 27th, 2009 at 11:04 am
You can use thttpd also for sharing files over the network. I have discuss it here: http://mpathirage.com/quickly-share-your-files-over-the-network-in-linux/.
May 15th, 2009 at 1:35 am
Really intersting.. I get it now.. its very useful for me when i want to sharing a file..
August 9th, 2009 at 3:45 pm
really interesting article.. how u do the tag cloud? its very nice..