FICHA · MANJARO

python-puremagic

A Python module that will identify a file based off it's magic numbers

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

Description

Identifies file types by checking magic numbers in their contents. It helps Python tools classify files even when extensions are missing, misleading, or changed.

File identification is only a hint and should not replace validation. Treat untrusted files carefully, especially before parsing, converting, or opening them with other tools.

Permissions

Permissions not analysed for this source yet.