A wrapper for python-magic that includes python-magic-bin files.
This was made duo to a file conflict problem happening when trying to install python-magic and python-magic-bin.
pip install py-file-type
Works exactly like python-magic
import py_file_type as magic
file_type = magic.from_file('video.mp4', mime=True)
print(file_type) # -> video/mp4
Riadh Azzoun - @riad-azz
This project is licensed under the [MIT] License - see the LICENSE.md file for details