Calculate SHA256 hash of manifest file.
(self)
| 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 | |
| 313 | class PresetRegistry: |