Python libmagic bindings

JSON →
library 1.0 ·python
verified May 26, 2026

libmagic provides Python bindings to the `libmagic` C library, which identifies file types by checking their 'magic numbers' and other patterns. It's a thin wrapper around the venerable `file` command-line utility. The current version is 1.0, and it generally follows a stable, low-cadence release cycle focusing on maintenance and compatibility with the underlying C library.

total hits 18
actors 7 distinct systems
last hit 2d ago AhrefsBot
MetaBot
4
Script
2
OAI-SearchBot
2
ChatGPT-User
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · HK · 🇳🇴 Norway · 🇪🇸 Spain