I’ve been running a small home media server for about a year, written entirely with the standard library: http.server.ThreadingHTTPServer , http.client , urllib , threading , queue . No framework and no third-party packages. It’s about 3k lines and serves a handful of my own devices (phone, TV, laptop, tablet). I picked stdlib-only on purpose so it would run anywhere with a bare Python and nothing to upgrade, but the server has grown into things the stdlib server probably wasn’t meant for, and I’d like a reality check from people who’ve been here.
What the traffic looks like
Mostly short JSON requests (library, history, search), which are fine.
Byte-range proxying of large media files, so connections stay open for minutes.
Live HLS: for each live stream a client watches, I run one “watcher” thread that follows the upstream playlist, plus 4 worker threads pulling segments ahead of the player through a queue.PriorityQueue , with a threading.Condition to wake request handlers waiting for a segment.…