Comparison
gitignorefile vs pathspec vs py-walk vs rignore
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A spec-compliant `.gitignore` parser for Python
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install gitignorefileUtility 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 pathspecFilter filesystem paths based on gitignore-like patterns
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install py-walkPython Bindings for the ignore crate
Maintained. Last release 4 months ago. Weaker on release cadence.
pip install rignoreIn short
- gitignorefile looks abandoned: avoid it for new projects.
- py-walk is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pathspec is the most used: 634.5M downloads a month, 18× more than rignore.
- pathspec also has the best Pythie’s Index (78).
- Safe default for a new project: pathspec.
Side by side
| Metric | gitignorefile | pathspec | py-walk | rignore |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 21 | Pythie’s Index: 78 | Pythie’s Index: 22 | Pythie’s Index: 67 |
| Verdict | Likely abandoned | Actively maintained | Slowing down | Maintained |
| Downloads / month | 103.2K | 634.5M | 1.9M | 36.2M |
| Downloads, month over month | +0% | +7% | -14% | -2% |
| GitHub stars | 11 | 239 | 9 | – |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 14 | 1.7K | 9 | 8 |
| Last release | Sep 4, 2022 | Apr 27, 2026 | Oct 26, 2024 | Aug 4, 2026 |
| Releases, 12 months | 0 | 7 | 0 | 2 |
| Weeks with commits | 0 / 26 | 15 / 26 | 0 / 26 | – |
| Recent contributors | 9 | 19 | 2 | – |
| First release | Aug 2022 | Dec 2013 | Nov 2023 | Jul 2024 |
| Python versions | 3.6 – 3.12 | 3.9 – 3.14 | 3.7 – 3.12 | – |
| License | MIT | MPL-2.0 | 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.