MIME Magic

Samuel knipknap at gmail.com
Sun Mar 18 00:02:50 CET 2007


How can I determine the type of a file from "magic bytes", similar to
what the "file" command on unix does? I found


but this only seems to use the filename (extension) for finding the
type. Any hints?


More information about the Python-list mailing list