hash.py
key_hash(mapping)
¶
32-byte hash of the mapping's key values sorted by the key name. This is often used to convert a long primary key value into a shorter hash. For example, the JobTable in datajoint.jobs uses this function to hash the primary key of autopopulated tables.
Source code in datajoint/hash.py
7 8 9 10 11 12 13 14 15 16 |
|
uuid_from_stream(stream, *, init_string='')
¶
:stream: stream object or open file handle :init_string: string to initialize the checksum
Returns:
Type | Description |
---|---|
16-byte digest of stream data |
Source code in datajoint/hash.py
19 20 21 22 23 24 25 26 27 28 29 30 31 |
|