Comparison
strongtyping vs trycast vs type-enforced vs typeguard
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Decorator which checks whether the function is called with the correct type of parameters
Maintained. Last release 5 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install strongtypingMaintained. Last release 6 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install trycastA dependency free type enforcer for python type annotations
Actively maintained. Last release 6 days ago, commits in 15 of the last 26 weeks. A safe choice.
pip install type-enforcedRun-time type checker for Python
Actively maintained. Last release 11 days ago, commits in 9 of the last 26 weeks. A safe choice.
pip install typeguardIn short
- typeguard is the most used: 68.1M downloads a month, 573× more than strongtyping.
- Maintenance is comparable: type-enforced 84, typeguard 75, strongtyping 67, trycast 47 on Pythie’s Index.
- strongtyping is growing fastest: downloads +38% over the last month.
- Safe default for a new project: typeguard.
Side by side
| Metric | strongtyping | trycast | type-enforced | typeguard |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 67 | Pythie’s Index: 47 | Pythie’s Index: 84 | Pythie’s Index: 75 |
| Verdict | Maintained | Maintained | Actively maintained | Actively maintained |
| Downloads / month | 118.8K | 43.7K | 88.7K | 68.1M |
| Downloads, month over month | +38% | -30% | -56% | +12% |
| GitHub stars | 121 | 88 | 73 | 1.8K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 6 | 5 | 12 | 668 |
| Last release | Oct 25, 2026 | Oct 21, 2026 | Nov 25, 2026 | Nov 20, 2026 |
| Releases, 12 months | 16 | 2 | 26 | 5 |
| Weeks with commits | 4 / 26 | 2 / 26 | 15 / 26 | 9 / 26 |
| Recent contributors | 4 | 3 | 2 | 28 |
| First release | Jun 2020 | Dec 2020 | Apr 2022 | Dec 2015 |
| Python versions | 3.13 – 3.15 | 3.10 – 3.15 | – | 3.10 – 3.15 |
| License | CC-BY-ND-4.0 | MIT | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.