{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/11"}],"enrichment":{"capability":"Provides the cached_property decorator for Python 3.6 and 3.7, allowing methods to be computed once per instance and cached as attributes.","skillfed_tags":["backport","performance-optimization"],"use_cases":["Add caching to expensive statistical computations in data analysis classes.","Backport cached_property to legacy codebases still running Python 3.6 or 3.7.","Cache derived attributes in immutable-like objects where recomputation is wasteful.","Simplify property definitions when you need both lazy evaluation and memoization."],"what_it_does":"This package backports Python 3.8's cached_property descriptor to Python 3.6 and 3.7. It lets you decorate a method so its result is computed once and then stored as a regular instance attribute, avoiding recomputation on subsequent accesses. The decorator is useful for expensive computed properties that don't change during an instance's lifetime.\n\nThe implementation is minimal and closely follows Python 3.8's standard library version. It depends only on the typing module and installs as a single wheel with low friction. However, it has a known limitation: it requires instances to have a mutable __dict__ attribute, so it won't work with classes that define __slots__ without including __dict__, or with metaclasses.","worth_installing":"Yes, if you need cached_property on Python 3.6 or 3.7. The package is stable, permissively licensed, and has no known vulnerabilities. Dormant maintenance is acceptable here because the backport targets a fixed API from Python 3.8\u2014there is little reason for it to change. If you are already on Python 3.8+, use the standard library instead."},"id":"backports-cached-property","links":{"html":"https://skillfed.io/packages/backports-cached-property","md":"https://skillfed.io/packages/backports-cached-property.md","pypi":"https://pypi.org/project/backports-cached-property/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-06-14","license_spdx":null,"license_treatment":"permissive","name":"backports.cached-property","python_support":"supports_current","summary":"cached_property() - computed once per instance, cached as attribute"},"popularity":{"monthly_downloads":509434,"position":6271,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
