python2-file 5.38 Python bindings to the libmagic file type guesser. Note that this module and the python-magic module both provide a "magic.py" file; these two modules, which are different and were developed separately, both serve the same purpose: provide Python bindings for libmagic.

The file command is a file type guesser, a command-line tool that tells you in words what kind of data a file contains. It does not rely on filename extensions to tell you the type of a file, but looks at the actual contents of the file. This package provides the libmagic library.