Comparison
cached-property vs propcache
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A decorator for caching properties in classes.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install cached-propertyAccelerated property cache
Actively maintained. Last release 2 months ago, commits in 23 of the last 26 weeks. A safe choice.
$
pip install propcacheIn short
- cached-property is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- propcache is the most used: 555.5M downloads a month, 25× more than cached-property.
- propcache also has the best Pythie’s Index (82).
- propcache is growing fastest: downloads +11% over the last month.
- Safe default for a new project: propcache.
Side by side
| Metric | cached-property | propcache |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 15 | 82 |