cached_class_property
- class ase2sprkkr.common.decorators.cached_class_property(method=None)[source]
Decorator that converts a method with a single cls argument into a property that can be accessed directly from the class. The value is computed only once.
Example
class Cls: @class_property def cls_property(): return some_cached_value @class_property def another_cls_property(cls): return another_cached_value x = Cls.cls_property
Class hierarchy
Constructor