ebonite.utils.classproperty module

class ebonite.utils.classproperty.ClassPropertyDescriptor(f_get, f_set=None)[source]

Bases: object

Wrapper which provides access to methods through property syntax

ebonite.utils.classproperty.classproperty(func)[source]

Decorator for properties of classes, similar to stdlib’s property which is limited to properties of objects

Parameters:func – function to decorate
Returns:wrapper which provides access to methods through property syntax