3 ms·
I often use `python -m http.server` e.g. to easily share files over local networks but I had no idea so many standard modules supported this. Thanks for sharing
by p4bl0 3y ago
I often use `python -m http.server` e.g. to easily share files over local networks but I had no idea so many standard modules supported this. Thanks for sharing this link!
- tomrod 3y agoDo you have an example snippet you could share?
- jon-wood 3y ago`python3 -m http.server --help` - its really not that complex.
- tomrod 3y agoTrue. Glad to hear it's not hidden under 10 args.
- quenix 3y agoYou just start an http server with python3 -m http.server 8080 and then access the server on the receiving device through its IP address. It’ll show a basic directory listing, and you can download from there.
- tomrod 3y agoThanks! Very helpful.