On 18 mar, 00:54, "Samuel" <[EMAIL PROTECTED]> wrote: > On Mar 18, 12:30 am, Jorge Godoy <[EMAIL PROTECTED]> wrote: > > > I'd start by taking a look at "file"'s code. :-) > > > The thing is being able to identify the signatures of several different > > types > > of files. Here's some help for > > you:http://www.garykessler.net/library/file_sigs.html > > > And here's an example of an authoritative source for that > > table:http://www.libpng.org/pub/png/spec/1.2/PNG-Structure.html > > Actually, I am looking for an existing solution because I do not want > to write it from scratch... I hope I am not out of options. > > -Samuel
python-magic : Python binding for the magic library This Python library can be use to query /etc/magic information for a given file in Python. -- http://mail.python.org/mailman/listinfo/python-list