Skip to content

HTTP web server in Python

This trick might help you to share files with Python in two lines :

Inside a folder type the following command :

The following line should appear :

And that’s it, you have a simple HTTP server running on your computer sharing your current folder.
To change the default port, specify the port as argument :

Have fun.

Post a Comment

Your email is never published nor shared. Required fields are marked *