import hashlib


def md5sum(file_path) -> str:
    """Get md5sum string
    
    Parameters
    ----------
    file_path : str
        path to file to calculate md5sum
    
    Returns
    -------
    str
        md5 value string in hex
    """
    with open(file_path, "rb") as f:
        md5sum_str = hashlib.md5(f.read()).hexdigest()
    return md5sum_str