Comparison
backports.strenum vs StrEnum
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Base class for creating enumerated constants that are also subclasses of str
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install backports-strenumAn Enum that inherits from str.
Maintained. Last release 4 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install strenumIn short
- backports.strenum is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- StrEnum is the most used: 30.8M downloads a month, 20× more than backports.strenum.
- StrEnum also has the best Pythie’s Index (43).
Side by side
| Metric | backports.strenum | StrEnum |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | Pythie’s Index: 43 |
| Verdict | Slowing down | Maintained |
| Downloads / month | 1.5M | 30.8M |
| Downloads, month over month | -29% | -18% |
| GitHub stars | 8 | 123 |
| Stars, last 7 days | – | – |
| Direct dependents | 22 | 225 |
| Last release | Dec 9, 2023 | Oct 31, 2026 |
| Releases, 12 months | 0 | 1 |
| Weeks with commits | 0 / 26 | 1 / 26 |
| Recent contributors | 4 | 7 |
| First release | Nov 2020 | Mar 2019 |
| Python versions | 3.9 – 3.10 | 3.8 – 3.14 |
| License | MIT | MIT |
| Known vulnerabilities | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.