Comparison
cached-property vs cachetools vs property-cached vs zope.cachedescriptors
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-propertyExtensible memoizing collections and decorators
Actively maintained. Last release 3 days ago, commits in 17 of the last 26 weeks. A safe choice.
pip install cachetoolsA decorator for caching properties in classes (forked from cached-property).
Likely abandoned. No release or commit for years (last release over 6 years ago).
pip install property-cachedMethod and property caching decorators
Maintained. Last release 1 day ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install zope-cachedescriptorsIn short
- cached-property is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- property-cached looks abandoned: avoid it for new projects.
- cachetools is the most used: 304.1M downloads a month, 13× more than cached-property.
- cachetools also has the best Pythie’s Index (87).
- cachetools is growing fastest: downloads +14% over the last month.
- Safe default for a new project: cachetools.
Side by side
| Metric | cached-property | cachetools | property-cached | zope.cachedescriptors |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | 87 |