MCPcopy Index your code
hub / github.com/idank/explainshell / gz_sha256

Function gz_sha256

explainshell/extraction/common.py:64–69  ·  view source on GitHub ↗
(gz_path: str)

Source from the content-addressed store, hash-verified

62
63
64def gz_sha256(gz_path: str) -> str:
65 h = hashlib.sha256()
66 with open(gz_path, "rb") as f:
67 for chunk in iter(lambda: f.read(8192), b""):
68 h.update(chunk)
69 return h.hexdigest()
70
71
72def _file_sha256_prefix(path: str, length: int = 12) -> str:

Callers 1

build_raw_manpageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected