code: def get_hash(path, hash_alg="sha256"):
      
      h = hashlib.new(hash_alg)
      with open(path, "rb") as f:
          for chunk in iter(functools.partial(f.read, 4096), b''):
              h.update(chunk)
      return h.hexdigest()
docs: Get the hash of the file at ``path``.
  
      I'd love to make this async, but evidently file i/o is always ready
  
      Args:
          path (str): the path to the file to hash.
          hash_alg (str, optional): the algorithm to use.  Defaults to 'sha256'.
  
      Returns:
          str: the hexdigest of the hash.