Comparison
pathlib vs pathlib2
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 pathlib2In short
- pathlib 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).