def find_class_properties(cls):
    """Find property members in a class.

    Returns all the property members of a class in a list of
    (name, value) pairs. Only those members defined with `property`
    decorator will be included in the list.

    :param cls: class where property members will be searched

    :returns: list of properties
    """
    candidates = inspect.getmembers(cls, inspect.isdatadescriptor)
    result = [
        (name, value) for name, value in candidates
        if isinstance(value, property)
    ]
    return result
def find_class_properties ( cls ) : candidates = inspect . getmembers ( cls , inspect . isdatadescriptor ) result = [ ( name , value ) for name , value in candidates if isinstance ( value , property ) ] return result
Find property members in a class.

    Returns all the property members of a class in a list of
    (name, value) pairs. Only those members defined with `property`
    decorator will be included in the list.

    :param cls: class where property members will be searched

    :returns: list of properties