This is a decorator propertythat gets out of the way after the first call. It allows you to automatically cache the calculated value.
@property decorator - , .
@cached_property, , __get__, , , . , .
@cached_property -decorated bar foo, :
Python foo.bar. bar .
Python bar __get__.
cached_property __get__ bar.
bar - 'spam'.
cached_property __get__ bar ; foo.bar = 'spam'.
cached_property __get__ 'spam'.
foo.bar, Python bar .
. Werkzeug: