Comparison
binaryornot vs filemagic vs identify vs magika
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Ultra-lightweight pure Python package to check if a file is binary or text.
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install binaryornotA Python API for libmagic, the library behind the Unix file command
Likely abandoned. No release or commit for years (last release over 13 years ago).
pip install filemagicFile identification library for Python
Actively maintained. Last release 2 months ago, commits in 12 of the last 26 weeks. A safe choice.
pip install identifyA tool to determine the content type of a file with deep learning
Actively maintained. Last release 12 days ago, commits in 17 of the last 26 weeks. A safe choice.
pip install magikaIn short
- filemagic looks abandoned: avoid it for new projects.
- identify is the most used: 153M downloads a month, 6.2× more than magika.
- Maintenance is comparable: identify 85, magika 79, binaryornot 39 on Pythie’s Index.
- magika is growing fastest: downloads +30% over the last month.
- Safe default for a new project: identify.
Side by side
| Metric | binaryornot | filemagic | identify | magika |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 39 | Pythie’s Index: 19 | Pythie’s Index: 85 | Pythie’s Index: 79 |
| Verdict | Low maintenance activity | Likely abandoned | Actively maintained | Actively maintained |
| Downloads / month | 12.8M | 64.1K | 153M | 24.6M |
| Downloads, month over month | +1% | -11% | +0% | +30% |
| GitHub stars | 148 | – | 297 | 18.9K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 80 | 19 | 53 | 43 |
| Last release | Mar 8, 2026 | May 29, 2013 | Sep 26, 2026 | Nov 19, 2026 |
| Releases, 12 months | 2 | 0 | 5 | 3 |
| Weeks with commits | 0 / 26 | – | 12 / 26 | 17 / 26 |
| Recent contributors | 10 | – | 17 | 6 |
| First release | Aug 2013 | Mar 2012 | Feb 2017 | Feb 2024 |
| Python versions | 3.10 – 3.14 | 3.2 | – | 3.8 – 3.14 |
| License | MIT | non-standard | MIT | Apache-2.0 |
| 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.