pds4_tools.extern.cached_property module

class cached_property(func)[source]

Bases: object

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

class threaded_cached_property(func)[source]

Bases: object

A cached_property version for use in environments where multiple threads might concurrently try to access the property.