Comparison
gitignore-parser vs gitmatch vs pathspec
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A spec-compliant gitignore parser for Python 3.5+
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install gitignore-parserGitignore-style path matching
Maintained. Last release 12 months ago, commits in 6 of the last 26 weeks. Weaker on release cadence and contributor spread.
$
pip install gitmatchUtility library for gitignore style pattern matching of file paths.
Actively maintained. Last release 7 months ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install pathspecIn short
- pathspec is the most used: 644.5M downloads a month, 211× more than gitignore-parser.
- pathspec also has the best Pythie’s Index (78).
- gitmatch is growing fastest: downloads +19% over the last month.
- Safe default for a new project: pathspec.
Side by side
| Metric | gitignore-parser | gitmatch | pathspec |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 26 | 48 |