{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"}],"enrichment":{"capability":"Provides decorator-based caching for computed properties and methods that automatically invalidate when their dependencies change, storing cached values in volatile attributes suitable for persistent objects.","skillfed_tags":["caching","descriptors","persistent-objects"],"use_cases":["Cache expensive computed properties in ORM models that invalidate when their source attributes are modified.","Implement lazy-loaded attributes that compute once on first access and persist for the object's lifetime.","Build idempotent methods whose results are cached based on arguments and instance state in persistent frameworks.","Manage volatile attribute computation in Zope or other persistence layers where _v_ attributes have special semantics.","Reduce redundant calculations in geometric or scientific classes where derived values depend on a few tracked inputs."],"what_it_does":"zope.cachedescriptors provides Python descriptors that cache computed values and automatically invalidate when their dependencies change. It includes CachedProperty (which recomputes when tracked attributes change), Lazy (which computes once and stays cached until manually deleted), and cached methods. Values are stored in _v_ volatile attributes, making them especially useful for persistent object frameworks where volatile storage is a standard pattern.\n\nThe package is a lightweight, dependency-minimal tool for avoiding redundant computation in classes where properties depend on instance state. It's designed for scenarios where you need fine-grained control over when a cached value is discarded\u2014either automatically when dependencies shift, or manually when needed. It supports both decorator and functional syntax for backwards compatibility.","worth_installing":"Yes, if you need dependency-aware property caching in a persistent object context or are already in the Zope ecosystem. The package is stable, has no known vulnerabilities, and installs with minimal friction. However, the aging maintenance status (no release in 336 days) and unclear license treatment warrant a review before adopting in new projects outside Zope\u2014for simpler caching, functools.cached_property may suffice."},"id":"zope-cachedescriptors","links":{"html":"https://skillfed.io/packages/zope-cachedescriptors","md":"https://skillfed.io/packages/zope-cachedescriptors.md","pypi":"https://pypi.org/project/zope-cachedescriptors/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-09-12","license_spdx":null,"license_treatment":"unclear","name":"zope.cachedescriptors","python_support":"supports_current","summary":"Method and property caching decorators"},"popularity":{"monthly_downloads":155376,"position":10817,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.0"}
