saftig.common¶
Common function for all submodules
Submodules¶
Functions¶
|
The hash function used to identify similar datasets, methods, configurations, .. |
|
The hash function used to identify similar datasets, methods, configurations, .. |
|
The hash function used to identify similar datasets, methods, configurations, .. |
|
hash objects in a list |
|
hash objects in a list and returns an integer |
|
Convert bytes to an integer |
|
Convert bytes into a base64 like string |
Package Contents¶
- saftig.common.hash_function(data)¶
The hash function used to identify similar datasets, methods, configurations, .. Returns a bytes object
- Parameters:
data (bytes) –
- Return type:
bytes
- saftig.common.hash_function_int(data)¶
The hash function used to identify similar datasets, methods, configurations, .. Returns an integer
- Parameters:
data (bytes) –
- Return type:
int
- saftig.common.hash_function_str(data)¶
The hash function used to identify similar datasets, methods, configurations, .. Returns an base64 string
- Parameters:
data (bytes) –
- Return type:
str
- saftig.common.hash_object_list(objects)¶
hash objects in a list Will raise a TypeError if an input value has an unsupported type
- Parameters:
objects (collections.abc.Sequence) –
- Return type:
bytes
- saftig.common.hash_object_list_int(objects)¶
hash objects in a list and returns an integer Will raise a TypeError if an input value has an unsupported type
- Parameters:
objects (collections.abc.Sequence) –
- Return type:
int
- saftig.common.bytes2int(data)¶
Convert bytes to an integer
- Parameters:
data (bytes) –
- Return type:
int
- saftig.common.bytes2str(data)¶
Convert bytes into a base64 like string
- Parameters:
data (bytes) –
- Return type:
str