Module markov.common.utils.serialization_utils

Functions

def flatten_dict(d: collections.abc.MutableMapping, parent_key: str = '', sep: str = '.', full_key: bool = False)

Args

d
input dictionary
parent_key
any parent tag for input dictionary
sep
separator to be used while joining multi-level keys
full_key
passing True results in the full key to be formed with tags from each level, else only last level

Returns

dict
new dictionary with all the entries of input dict at the first level
def serialize_dictionary_values_as_string(dictionary_object: Dict) ‑> Dict