Comparison
assertpy vs PyHamcrest vs sure
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Fluent, fully typed assertion library for Python: your type checker sees only the assertions that fit the value, and every failure carries a structured diff. Soft assertions, polling, inline snapshots, OpenAPI contracts.
Actively maintained. Last release 2 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install assertpyHamcrest framework for matcher objects
Maintained. Last release over 3 years ago, commits in 9 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install pyhamcrestutility belt for automated testing in python for python
Low maintenance activity. Last release over 2 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install sureIn short
- PyHamcrest is the most used: 2.6M downloads a month, 2.4× more than assertpy.
- assertpy is better maintained: Pythie’s Index 72 against 43.
- assertpy is growing fastest: downloads +13% over the last month.
Side by side
| Metric | assertpy | PyHamcrest | sure |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 72 | Pythie’s Index: 43 | Pythie’s Index: 16 |
| Verdict | Actively maintained | Maintained | Low maintenance activity |
| Downloads / month | 1.1M | 2.6M | 110.2K |
| Downloads, month over month | +13% | +0% | -41% |
| GitHub stars | 531 | 808 | 697 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 29 | 77 | 0 |
| Last release | Nov 16, 2026 | Oct 22, 2023 | Mar 4, 2024 |
| Releases, 12 months | 3 | 0 | 0 |
| Weeks with commits | 26 / 26 | 9 / 26 | 0 / 26 |
| Recent contributors | 1 | 5 | 9 |
| First release | Feb 2015 | Dec 2010 | Jun 2010 |
| Python versions | 3.10 – 3.15 | 3.6 – 3.11 | 3.6 – 3.11 |
| License | BSD-3-Clause | BSD-3-Clause | GPL-3.0-or-later |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.