MIME Magic

aspineux aspineux at gmail.com
Sat Mar 17 20:22:50 EDT 2007


On 18 mar, 00:54, "Samuel" <knipk... at gmail.com> wrote:
> On Mar 18, 12:30 am, Jorge Godoy <jgo... at gmail.com> 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.





More information about the Python-list mailing list