fftools.other¶
- fftools.other.check_null(item: str | bool | float) bool[source]¶
Check if an item is null/0/none.
- Parameters:
- Raises:
ValueError – if the item is not a str, bool, int or float.
- Returns:
If the value is considered null/0/none.
- Return type:
- fftools.other.chunks(input_list: list[Any], output_length: int) Generator[list[Any], None, None][source]¶
Get chunks of list -> list of lists.
- fftools.other.get_random_letters(count: int) str[source]¶
Get a string of random letters.
- Parameters:
count (int) – count of random characters in the returned string.
- Raises:
ValueError – if count is smaller than 1.
- Returns:
The string of random letters.
- Return type:
- fftools.other.pop_dict(input_dict: dict[str, Any], keys: list[str]) dict[str, Any][source]¶
Remove keys (and value for key) from dict.
does not modify the input dict. does nothing if the keys don’t exist in the dict.