Infer file type and MIME type of any file/buffer. No external dependencies.
Small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer. This is a Python port from filetype Go package.