Comparison
pdfrw vs pikepdf vs PyPDF2 vs PyPDF4
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
PDF file reader/writer library
Likely abandoned. No release or commit for years (last release over 9 years ago).
pip install pdfrwRead, write, repair, and transform PDFs in Python, powered by qpdf
Actively maintained. Last release 6 days ago, commits in 22 of the last 26 weeks. A safe choice.
pip install pikepdfA pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files
Maintained. Last release over 3 years ago, commits in 23 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install pypdf2PDF toolkit
Likely abandoned. No release or commit for years (last release over 8 years ago).
pip install pypdf4In short
- pdfrw looks abandoned: avoid it for new projects.
- PyPDF4 looks abandoned: avoid it for new projects.
- PyPDF2 is the most used: 16.6M downloads a month.
- pikepdf is better maintained: Pythie’s Index 85 against 57.
- pikepdf is growing fastest: downloads +30% over the last month.
Side by side
| Metric | pdfrw | pikepdf | PyPDF2 | PyPDF4 |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 14 | Pythie’s Index: 85 | Pythie’s Index: 57 | Pythie’s Index: 19 |
| Verdict | Likely abandoned | Actively maintained | Maintained | Likely abandoned |
| Downloads / month | 3.5M | 15.2M | 16.6M | 106.7K |
| Downloads, month over month | -2% | +30% | +17% | -1% |
| GitHub stars | 1.9K | 2.8K | 10.3K | – |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 74 | 245 | 1.3K | 20 |
| Last release | Sep 18, 2017 | Nov 26, 2026 | Dec 31, 2022 | Aug 7, 2018 |
| Releases, 12 months | 0 | 27 | 0 | 0 |
| Weeks with commits | 0 / 26 | 22 / 26 | 23 / 26 | – |
| Recent contributors | 17 | 4 | 32 | – |
| First release | Sep 2012 | Oct 2017 | Aug 2013 | Aug 2018 |
| Python versions | 3.3 – 3.6 | – | 3.6 – 3.11 | – |
| License | MIT | MPL-2.0 | non-standard | non-standard |
| Known vulnerabilities | None | None | 2 | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.