def get_properties ( cls ) : property_names = [ p for p in dir ( cls ) if isinstance ( getattr ( cls , p ) , property ) ] return property_names
python get list of properties on instance
Get all properties of the MessageFlags class .
def get_properties(cls):
        """Get all properties of the MessageFlags class."""
        property_names = [p for p in dir(cls)
                          if isinstance(getattr(cls, p), property)]
        return property_names