pluto.tools.md5_file

pluto.tools.md5_file(filename)[source]

Get md5sum of a file by reading it in small chunks. This avoids issues with Python memory usage when hashing large files.

Parameters

filename (str) – path to input file

Returns

hash for the file

Return type

str