pm4py.utils.deserialize#
- pm4py.utils.deserialize(ser_obj: Tuple[str, bytes]) Any [source]#
Deserialize a bytes string to a PM4Py object
- Parameters:
ser_obj – Serialized object (a tuple consisting of a string denoting the type of the object, and a bytes string representing the serialization)
- Return type:
Any
import pm4py net, im, fm = pm4py.discover_petri_net_inductive(dataframe) serialization = pm4py.serialize(net, im, fm) net, im, fm = pm4py.deserialize(serialization)