import hashlib


def get_model_hash(rvt_model_path):
    """
    Creates a hash of provided rvt model file
    :param rvt_model_path:
    :return: hash string
    """
    BLOCKSIZE = 65536
    hasher = hashlib.sha256()

    with open(rvt_model_path, "rb") as rvt:
        buf = rvt.read(BLOCKSIZE)
        while len(buf) > 0:
            hasher.update(buf)
            buf = rvt.read(BLOCKSIZE)

    return hasher.hexdigest()