I think that you are better off using python-magic-0.4.6 as it is readily available at PYPI and easily installed via pip into virtualenv environments. Documentation for python-magic-5.19.1 is hard to come by, but I managed to get it to work like this:



