repomatic.hashing module

File digesting, shared by every integrity check.

A stdlib-only leaf, like repomatic.versions, so any module can hash a file without importing the release machinery or risking an import cycle.

repomatic.hashing.compute_file_sha256(path)[source]

Compute the SHA-256 hex digest of a file.

Parameters:

path (Path) – Path to the file.

Return type:

str

Returns:

Lowercase hex digest string.