MCPcopy
hub / github.com/github/spec-kit / get_hash

Method get_hash

src/specify_cli/presets/__init__.py:307–310  ·  view source on GitHub ↗

Calculate SHA256 hash of manifest file.

(self)

Source from the content-addressed store, hash-verified

305 return self.data.get("tags", [])
306
307 def get_hash(self) -> str:
308 """Calculate SHA256 hash of manifest file."""
309 with open(self.path, 'rb') as f:
310 return f"sha256:{hashlib.sha256(f.read()).hexdigest()}"
311
312
313class PresetRegistry:

Callers 2

test_get_hashMethod · 0.95

Calls 1

readMethod · 0.45

Tested by 1

test_get_hashMethod · 0.76