▲ | collinmanderson 4 days ago | |
> It already has no deps Yes when I heard it was python I immediately checked the dependencies expecting a ginormous list and found basically nothing. Incredibly impressive, just a few "stolen" libs here: https://github.com/9001/copyparty/tree/hovudstraum/copyparty... Worth scrolling through util.py to see lots of hand-implemented code: MultipartParser, read_header(), read_socket_chunked(), html_escape(), atomic_move(), killtree ("still racy but i tried"), termsize(), etc https://github.com/9001/copyparty/blob/hovudstraum/copyparty... 6k loc for http server/client handling transferring files, rss feed, etc. See `def run(self)` for main request parsing. https://github.com/9001/copyparty/blob/hovudstraum/copyparty... |