def get_attributes(obj):
    """
    Fetches the attributes from an object.

    :param obj: The object.
    :type obj: object
    :returns: A dictionary of attributes and their values from the object.
    :rtype: dict
    """
    return {k: getattr(obj, k) for k in dir(obj) if not k.startswith("__")}