Skip to content

riad-azz/py-file-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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