import hashlib


def get_sha256(local_path):
    """
    Computes the sha256 of a local file.

    :param local_path: string/path to file
    :return: sha256 checksum
    """
    file_hash = hashlib.sha256()
    with open(local_path, "rb") as in_f:
        for chunk in iter(lambda: in_f.read(512 * file_hash.block_size), b''):
            file_hash.update(chunk)
    return file_hash