pyslk.checksum_raw

Contents

pyslk.checksum_raw#

pyslk.checksum_raw(resource_path: str | Path, checksum_type: str | None = None, return_type: int = 0) str | int | CompletedProcess#

Get a checksum of a resource

Parameters:
  • resource_path (str or Path) – resource (full path)

  • checksum_type (str) – checksum_type (possible values: None, “sha512”, “adler32”; None => print all)

  • return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)

Returns:

stdout of the slk_helpers call

Return type:

Union[str, int, subprocess.CompletedProcess]