negmas.serialization Module

Implements serialization to and from strings and secondary storage.

Functions

serialize(value[, deep, add_type_field, …])

Encodes the given value as nothing more complex than simple dict of either dicts, lists or builtin numeric or string values.

deserialize(d[, deep, remove_type_field, …])

Decodes a dict/object coming from serialize

dump(d, file_name[, sort_keys, compact])

Saves an object depending on the extension of the file given.

load(file_name)

Loads an object depending on the extension of the file given.

to_flat_dict(value[, deep, add_type_field])

Encodes the given value as a flat dictionary