Question about Reading Files

Mats Rauhala mats.rauhala at
Sun Sep 5 12:28:38 CEST 2010

On 2010-09-05, genxtech <jrmy.lnrd at> wrote:
> I am using Fedora 13.  When I run the file command the response is
> that it is a 'data' file.  If there are any tips on how to
> programatically figure out the format, I would greatly appreciate it.

I tried python-magic from the fedora repositories, but was unable to get
it working. However there was another project at github [1] which seems
to be working, at least with python 2.6. An easy way to test whether it
works is by unpacking it, going to the directory, opening the
interactive shell and running 'import magic' and

See help(magic) for more help


More information about the Python-list mailing list