import inspect


def get_attributes(klass):
    """Get all class attributes.
    """
    attributes = list()
    for attr, _ in inspect.\
            getmembers(klass, lambda x: not inspect.isroutine(x)):
        if not (attr.startswith("__") and attr.endswith("__")):
            attributes.append(attr)
    return attributes