mpacts.io. serial_encoder_decoder

In order to be able to use this module import it like this:

import mpacts.io.serial_encoder_decoder
#or assign it to a shorter name
import mpacts.io.serial_encoder_decoder as ser

ArrayDataSaver

class mpacts.io.serial_encoder_decoder.ArrayDataSaver

Bases: mpacts.core.baseobject.BaseObject

tool to convert contents of an array to mpacts json-like format
Has no default location.
object __init__(tuple args, dict kwds) :
args: name, parent kwds:
ArrayDataSaver(name, parent, **kwargs)
to_json((ArrayDataSaver)arg1, (BaseObject)arg2) → str :

serializes content to string

SerialEncoderDecoder

class mpacts.io.serial_encoder_decoder.SerialEncoderDecoder

Bases: mpacts.core.baseobject.BaseObject

An object that decodes state from saved objects.
Has no default location.
object __init__(tuple args, dict kwds) :
args: name, parent kwds:
SerialEncoderDecoder(name, parent, **kwargs)
dumps((SerialEncoderDecoder)arg1, (object)arg2) → str
loads((SerialEncoderDecoder)arg1, (str)arg2) → object