franc.common
Common function for all submodules
Submodules
Functions
Get a string that describes the operating system and CPU model. |
|
|
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
- franc.common.get_platform_info()
Get a string that describes the operating system and CPU model.
- franc.common.hash_function(data)
The hash function used to identify similar datasets, methods, configurations, .. Returns a bytes object
- Parameters:
data (bytes | numpy.ndarray) –
- Return type:
bytes
- franc.common.hash_function_int(data)
The hash function used to identify similar datasets, methods, configurations, .. Returns an integer
- Parameters:
data (bytes) –
- Return type:
int
- franc.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
- franc.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 | dict[str, Any]) –
- Return type:
bytes
- franc.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
- franc.common.bytes2int(data)
Convert bytes to an integer
- Parameters:
data (bytes) –
- Return type:
int
- franc.common.bytes2str(data)
Convert bytes into a base64 like string
- Parameters:
data (bytes) –
- Return type:
str