Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 775 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 775 Bytes

Py File Type

A wrapper for python-magic that includes python-magic-bin files.

Description

This was made duo to a file conflict problem happening when trying to install python-magic and python-magic-bin.

Installing

pip install py-file-type

Usage

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

Authors

Riadh Azzoun - @riad-azz

License

This project is licensed under the [MIT] License - see the LICENSE.md file for details