MCPcopy
hub / github.com/openai/plugins / sha256_file

Function sha256_file

plugins/ngs-analysis/scripts/ngs_run_utils.py:95–103  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

93
94
95def sha256_file(path: Path) -> str:
96 digest = hashlib.sha256()
97 with path.open("rb") as handle:
98 while True:
99 chunk = handle.read(1024 * 1024)
100 if not chunk:
101 break
102 digest.update(chunk)
103 return digest.hexdigest()
104
105
106def sha256_json(value: Any) -> str:

Callers 7

check_expected_filesFunction · 0.90
verify_resource_lockFunction · 0.90
stage_analysis_inputsFunction · 0.90
input_checksumsFunction · 0.85
write_io_lineageFunction · 0.85
collectFunction · 0.85
write_standard_manifestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected