Description
Infer file type and MIME type from file contents or byte buffers in Python. It helps upload handlers, import tools, and media processors identify data even when filenames are missing or misleading.
This is a detection library, not a security scanner. File type guesses can be wrong or incomplete, so applications should still validate content and enforce safety rules for uploads or downloads.