This library can be used to classify files according to magic number tests. It implements the core functionality of the file command. . This package contains the Python bindings to query /etc/magic information for a given file in Python, built for the Python debug interpreter.