MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / Fingerprint

Class Fingerprint

misc/python/materialize/mzbuild.py:145–154  ·  view source on GitHub ↗

A SHA-1 hash of the inputs to an `Image`. The string representation uses base32 encoding to distinguish mzbuild fingerprints from Git's hex encoded SHA-1 hashes while still being URL safe.

Source from the content-addressed store, hash-verified

143
144
145class Fingerprint(bytes):
146 """A SHA-1 hash of the inputs to an `Image`.
147
148 The string representation uses base32 encoding to distinguish mzbuild
149 fingerprints from Git's hex encoded SHA-1 hashes while still being
150 URL safe.
151 """
152
153 def __str__(self) -> str:
154 return base64.b32encode(self).decode()
155
156
157class Profile(Enum):

Callers 1

fingerprintMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected