Comparison
patch-ng 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.
Maintained. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install patch-ngUnified diff parsing/metadata extraction library.
Maintained. Last release 3 months ago, commits in 7 of the last 26 weeks. Weaker on release cadence and contributor spread.
$
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
- unidiff is the most used: 30M downloads a month, 5.9× more than patch-ng.
- unidiff also has the best Pythie’s Index (63).
- unidiff2 is growing fastest: downloads +246% over the last month.
- unidiff2 is the newcomer: first released Oct 2025.
- Safe default for a new project: unidiff.