file(1) command in Python?
Oleg Broytmann
phd at phd.pp.ru
Wed Oct 24 03:49:01 EDT 2001
On Tue, Oct 23, 2001 at 01:49:28PM -0700, Bill Janssen wrote:
> 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.
Magic on Parnasus: http://www.vex.net/parnassus/apyllo.py/514463245.39015704
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list