Module codec
source code
Service to handle serialization and deserialization of fit objects.
Object serialization is useful for long term storage, interlanguage
communication and network transmission. In all cases, the process
involves an initial encode() followed by a later decode().
This module provides the following serialization classes:
CPickle
Pickle
JSON
For each serialization class we have two static methods:
encode(object) -> string
decode(string) -> object
For serial encoding we will use json. The json format is human
readable and easily parsed. json itself does not define support
of Inf/NaN, though some json tools support it using the native
javascript values of Infinity and Nan. Various xml encodings are
also possible, though somewhat more difficult to work with.
|
|
Codec
Network transport encoding so that we can switch between
pickle, xml, json, google, ...
|
|
|
Pickle
Codec for pickle.
|
|
|
JSON
Codec for JSON
|