Comparison
ensure vs expects vs sure
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Literate 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 ensureExpressive and extensible TDD/BDD assertion library for Python
Likely abandoned. No release or commit for years (last release over 8 years ago).
$
pip install expectsutility 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.
- expects looks abandoned: avoid it for new projects.
- sure is the most used: 110.2K downloads a month.
- sure also has the best Pythie’s Index (16).
Side by side
| Metric | ensure | expects | sure |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | Pythie’s Index: 18 | Pythie’s Index: 16 |
| Verdict | Slowing down | Likely abandoned | Low maintenance activity |
| Downloads / month | 102.5K | 241.7K | 110.2K |
| Downloads, month over month | -13% | +14% | -41% |
| GitHub stars | 157 | 221 | 697 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 88 | 14 | 0 |
| Last release | Dec 10, 2023 | Oct 25, 2018 | Mar 4, 2024 |
| Releases, 12 months | 0 | 0 | 0 |
| Weeks with commits | 0 / 26 | 0 / 26 | 0 / 26 |
| Recent contributors | 6 | 6 | 9 |
| First release | Oct 2013 | Aug 2013 | Jun 2010 |
| Python versions | 3.7 – 3.11 | 3.5 – 3.7 | 3.6 – 3.11 |
| License | Apache-2.0 | 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.