A pure Python cleanroom implementation of libmagic, with instrumented parsing from Kaitai struct and an interactive hex viewer
trailofbits/polyfile has 390 GitHub stars.
It currently ranks #18997 daily, #19813 weekly, #22543 monthly by momentum on Trending Repos; its best-ever rank is #13236.