Comparison
magika vs pure-magic-rs vs puremagic vs python-magic
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A tool to determine the content type of a file with deep learning
Actively maintained. Last release 13 days ago, commits in 15 of the last 26 weeks. A safe choice.
pip install magikaPython bindings for pure-magic crate, a pure Rust re-implementation of libmagic
Actively maintained. Last release 13 days ago, commits in 11 of the last 26 weeks. A safe choice.
pip install pure-magic-rsPure python implementation of magic file detection
Maintained. Last release 2 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install puremagicFile type identification using libmagic
Low maintenance activity. Last release over 4 years ago, commits in 3 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install python-magicIn short
- python-magic is the most used: 25.7M downloads a month.
- pure-magic-rs is better maintained: Pythie’s Index 81 against 25.
- pure-magic-rs is growing fastest: downloads +65% over the last month.
- pure-magic-rs is the newcomer: first released Nov 2025.
Side by side
| Metric | magika | pure-magic-rs | puremagic | python-magic |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 78 | Pythie’s Index: 81 | Pythie’s Index: 60 | Pythie’s Index: 25 |
| Verdict | Actively maintained | Actively maintained | Maintained | Low maintenance activity |
| Downloads / month | 25.5M | 90.4K | 10.4M | 25.7M |
| Downloads, month over month | +35% | +65% | +5% | +8% |
| GitHub stars | 18.9K | 38 | 249 | 2.9K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 43 | 3 | 125 | 1.2K |
| Last release | Nov 19, 2026 | Nov 19, 2026 | Nov 16, 2026 | Jun 7, 2022 |
| Releases, 12 months | 3 | 17 | 8 | 0 |
| Weeks with commits | 15 / 26 | 11 / 26 | 1 / 26 | 3 / 26 |
| Recent contributors | 6 | 2 | 3 | 20 |
| First release | Feb 2024 | Nov 2025 | Dec 2016 | Apr 2010 |
| Python versions | 3.8 – 3.14 | – | 3.12 – 3.15 | 3.5 – 3.9 |
| License | Apache-2.0 | GPL-3.0 OR BSD-2-Clause | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.