file(1) command in Python?

Bill Janssen janssen at parc.xerox.com
Tue Oct 23 16:49:28 EDT 2001


Has anyone written a module or function for Python which provides the
functionality of the Unix file(1) command?  That is, it attempts to
guess the type of a file by looking for distinctive patterns in the
contents of the file, usually driven by a table of "magic" numbers and
strings.

Bill





More information about the Python-list mailing list