Comparison
assertpy vs ensure 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 assertpyLiterate BDD assertions in Python with no magic
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install ensureutility 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
- ensure is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- assertpy is the most used: 1.1M downloads a month, 9.7× more than sure.
- assertpy also has the best Pythie’s Index (72).
- assertpy is growing fastest: downloads +13% over the last month.
- Safe default for a new project: assertpy.
Side by side
| Metric | assertpy | ensure | sure |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 72 | Pythie’s Index: 17 | Pythie’s Index: 16 |
| Verdict | Actively maintained | Slowing down | Low maintenance activity |
| Downloads / month | 1.1M | 102.5K | 110.2K |
| Downloads, month over month | +13% | -13% | -41% |
| GitHub stars | 531 | 157 | 697 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 29 | 88 | 0 |
| Last release | Nov 16, 2026 | Dec 10, 2023 | Mar 4, 2024 |
| Releases, 12 months | 3 | 0 | 0 |
| Weeks with commits | 26 / 26 | 0 / 26 | 0 / 26 |
| Recent contributors | 1 | 6 | 9 |
| First release | Feb 2015 | Oct 2013 | Jun 2010 |
| Python versions | 3.10 – 3.15 | 3.7 – 3.11 | 3.6 – 3.11 |
| License | BSD-3-Clause | Apache-2.0 | 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.