Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
`Python -m http.server` as ephemeral file server (hiandrewquinn.github.io)
7 points by hiAndrewQuinn 11 months ago | hide | past | favorite | 4 comments


It works fine but I still prefer caddy.

caddy file-server --browse


caddy probably gets better performance, agreed. This has the advantage of being installed on every semi-recent Python version, which itself is installed OOTB on most Linux boxes, which is very relevant to my use case. It also works on Windows if Python already happens to be there - not sure if caddy is nix-specific


Never heard of caddy, but it seems something you need to install. This „trick“ just requires Python, which a default Linux already has. And it works well, even with large files. Another plus is you can see accesses in real time. In combination with Ngrok it’s a quick way to exchange a file with someone remote you’re on the phone with.


Thanks! I’ll try this one out (I usually use the one here)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: