import inspect


def is_persistent_class(obj):
    """Checks if an object is a class that is persisted in the Krake database.

    Args:
        obj: the given object to check.

    Returns:
        bool: True if the object given is a class persisted in the Krake database, False
            otherwise

    """
    return inspect.isclass(obj) and hasattr(obj, "__etcd_key__")