# puremagic — card for AI agents

Detects file types from magic numbers in pure Python.

Category: Files, images and media · PyPI package `puremagic` · latest version 2.2.0 (checked 2026-11-01)
Install: `pip install puremagic`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 41.7 (#2946 of all tools, 190 of 281 in its category)
- Downloads last week: 2,516,613 (as of 2026-11-24), +14.0% over 4 weeks
- GitHub stars: 249 (as of 2026-11-24)
- Last push: 2026-11-16

## Often used with
NumPy 96.2%, Hugging Face Hub 92.3%, pandas 92.3%, Pillow 92.3%, OpenAI Python Library 88.5%, python-dotenv 88.5%

## Links
- AgentGid page: https://agentgid.com/tools/puremagic/
- Homepage: https://github.com/cdgriffith/puremagic
- Repository: https://github.com/cdgriffith/puremagic

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
