Comparison
cloudpathlib vs smart-open vs universal-pathlib vs xopen
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
pathlib-style classes for cloud storage services.
Actively maintained. Last release 8 weeks ago, commits in 12 of the last 26 weeks. A safe choice.
pip install cloudpathlibUtils for streaming large files (S3, HDFS, GCS, SFTP, Azure Blob Storage, gzip, bz2, zst...)
Actively maintained. Last release 3 days ago, commits in 13 of the last 26 weeks. A safe choice.
pip install smart-openpathlib api extended to use fsspec backends
Maintained. Last release 6 days ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install universal-pathlibOpen compressed files transparently
Maintained. Last release 6 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install xopenIn short
- smart-open is the most used: 61.6M downloads a month, 2.2× more than cloudpathlib.
- smart-open also has the best Pythie’s Index (88).
- Safe default for a new project: smart-open.
Side by side
| Metric | cloudpathlib | smart-open | universal-pathlib | xopen |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 77 | 88 |