utils/SettingsReader.py
def md5(self, fname:str)->str:
        """Calculates and returns MD5 hash checksum of a file.

        From https://stackoverflow.com/a/3431838/2795533

        :param fname: file path.
        :return: md5 hex value.
        """
        hash_md5 = hashlib.md5()
        with open(fname, "rb") as f:
            for chunk in iter(lambda: f.read(4096), b""):
                hash_md5.update(chunk)
        return hash_md5.hexdigest()
Calculates and returns MD5 hash checksum of a file.

        From https://stackoverflow.com/a/3431838/2795533

        :param fname: file path.
        :return: md5 hex value.
        
Calculates and returns MD5 hash checksum of a file.
Calculates and returns MD5 hash checksum of a file .
def md5(self, fname:str)->str:
        hash_md5 = hashlib.md5()
        with open(fname, "rb") as f:
            for chunk in iter(lambda: f.read(4096), b""):
                hash_md5.update(chunk)
        return hash_md5.hexdigest()
def md5 ( self , fname : str ) -> str : hash_md5 = hashlib . md5 ( ) with open ( fname , "rb" ) as f : for chunk in iter ( lambda : f . read ( 4096 ) , b"" ) : hash_md5 . update ( chunk ) return hash_md5 . hexdigest ( )
Calculates and returns MD5 hash checksum of a file.
Calculates and returns MD5 hash checksum of a file .
"""Calculates and returns MD5 hash checksum of a file.

        From https://stackoverflow.com/a/3431838/2795533

        :param fname: file path.
        :return: md5 hex value.
        """
md5 hex value.
md5 hex value .
self
fname
str
None