Edit me on GitHub

Installing python-magic

Use of the substanced.file.USE_MAGIC constant for guessing file types from stream content requires the python-magic library, which works without extra help on most systems, but may require special dependency installations on Mac OS and Windows systems. You’ll need to follow these steps on those platforms to use this feature:

Mac OS X

Windows

“Installation on Win32” in https://github.com/ahupp/python-magic