FICHA · MANJARO

python-filetype

Infer file type and MIME type of any file/buffer

  • Library
  • Dev
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

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.

Permissions

Permissions not analysed for this source yet.