Comparison
pathlib vs pathlib2 vs Unipath
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Object-oriented filesystem paths
Likely abandoned. No release or commit for years (last release over 12 years ago). It brings a standard-library module to older Pythons: on current versions, use the built-in one.
$
pip install pathlibObject-oriented filesystem paths
Low maintenance activity. Last release over 4 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install pathlib2Object-oriented alternative to os/os.path/shutil
Likely abandoned. No release or commit for years (last release over 11 years ago).
$
pip install unipathIn short
- pathlib looks abandoned: avoid it for new projects.
- Unipath looks abandoned: avoid it for new projects.
- pathlib2 is the most used: 3.9M downloads a month.
- pathlib2 also has the best Pythie’s Index (17).
Side by side
| Metric | pathlib | pathlib2 | Unipath |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | Pythie’s Index: 17 | Pythie’s Index: 14 |
| Verdict | Likely abandoned | Low maintenance activity | Likely abandoned |
| Downloads / month | 4.3M | 3.9M | 93.7K |
| Downloads, month over month | -12% | +3% | -21% |
| GitHub stars | – | 86 | 507 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 1.4K | 220 | 32 |
| Last release | Sep 3, 2014 | Feb 10, 2022 | Feb 11, 2015 |
| Releases, 12 months | 0 | 0 | 0 |
| Weeks with commits | – | 0 / 26 | 0 / 26 |
| Recent contributors | – | 7 | 6 |
| First release | Jan 2012 | Oct 2014 | Mar 2009 |
| Python versions | 3.2 – 3.4 | 3.5 – 3.9 | 3.2 – 3.4 |
| License | MIT | 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.