pwspy.utility.misc.cached_property

class pwspy.utility.misc.cached_property(func)[source]

Bases: object

A decorator for a property that is only computed once per instance and then replaces itself with an ordinary attribute. Deleting the attribute resets the property. Source: https://github.com/bottlepy/bottle/commit/fa7733e075da0d790d809aa3d2f53071897e6f76