Comparison
lazy vs memoized-property vs zope.cachedescriptors
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Lazy attributes for Python objects
Maintained. Last release 5 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install lazyA simple python decorator for defining properties that only run their fget function once
Likely abandoned. No release or commit for years (last release over 10 years ago).
$
pip install memoized-propertyMethod 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
- memoized-property looks abandoned: avoid it for new projects.
- lazy is the most used: 440.8K downloads a month, 4.1× more than zope.cachedescriptors.
- zope.cachedescriptors is better maintained: Pythie’s Index 57 against 47.
Side by side
| Metric | lazy | memoized-property | zope.cachedescriptors |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 47 | 19 |