Comparison
patch vs unidiff vs unidiff2
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Library to parse and apply unified diffs
Likely abandoned. No release or commit for years (last release over 10 years ago).
$
pip install patchUnified diff parsing/metadata extraction library.
Maintained. Last release 3 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install unidiffUnified diff parsing/metadata extraction library.
Low maintenance activity. Last release 13 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install unidiff2In short
- patch looks abandoned: avoid it for new projects.
- unidiff is the most used: 31.1M downloads a month, 39× more than patch.
- unidiff also has the best Pythie’s Index (59).
- unidiff2 is growing fastest: downloads +268% over the last month.
- unidiff2 is the newcomer: first released Oct 2025.
Side by side
| Metric | patch | unidiff | unidiff2 |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | Pythie’s Index: 59 | Pythie’s Index: 30 |
| Verdict | Likely abandoned | Maintained | Low maintenance activity |
| Downloads / month | 791.7K | 31.1M | 264.1K |
| Downloads, month over month | -3% | +3% | +268% |
| GitHub stars | 123 | 286 | 1 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 21 | 120 | 1 |
| Last release | Feb 13, 2016 | Sep 15, 2026 | Oct 30, 2025 |
| Releases, 12 months | 0 | 2 | 0 |
| Weeks with commits | 0 / 26 | 5 / 26 | 0 / 26 |
| Recent contributors | 5 | 11 | 18 |
| First release | May 2015 | Dec 2014 | Oct 2025 |
| Python versions | – | 3.9 – 3.13 | 3.7 – 3.11 |
| License | unknown | MIT | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.