Infer file type and MIME type of any file/buffer
filetype is a small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer.
filetype