class core.serialization.AbstractDeserializer[source]

Bases: object

deserialize(lines, protocol=None, **kwds)[source]
update(obj, lines, protocol=None, **kwds)[source]
class core.serialization.AbstractLoader[source]

Bases: object

load(path, protocol=None, **kwds)[source]
update(obj, path, protocol=None, **kwds)[source]
class core.serialization.AbstractSaver[source]

Bases: object

save(obj, path, protocol=None, **kwds)[source]
class core.serialization.BGEOMLoader[source]

Bases: core.serialization.AbstractLoader

Specific loader that is used to manipulate PlantGL objects

load(filename)[source]
Parameters:filename -- filename to convert into python object
Returns:a python object interpreted from string "text"
default_name = 'BGEOMLoader'
input_format = '*.BGEOM'
class core.serialization.BGEOMSaver[source]

Bases: object

Specific loader that is used to manipulate PlantGL objects

save(obj, filename)[source]

Store obj into filename

default_name = 'BGEOMSaver'
output_format = '*.BGEOM'
class core.serialization.BinaryLoader[source]

Bases: object

load(filename)[source]
default_name = 'BinaryLoader'
input_format = '*'
class core.serialization.BinarySaver[source]

Bases: core.serialization.AbstractSaver

save(obj, filename)[source]
default_name = 'BinarySaver'
output_format = '*'
class core.serialization.CPickleLoader[source]

Bases: core.serialization.AbstractLoader

Specific loader that use cPickle.loads

load(filename)[source]
Parameters:filename -- filename to convert into python object
Returns:a python object interpreted from filename
default_name = 'CPickleLoader'
input_format = '*'
class core.serialization.CPickleSaver[source]

Bases: core.serialization.AbstractSaver

Specific saver that use cPickle.dump

save(obj, path)[source]

Store obj into filename

default_name = 'CPickleSaver'
output_format = '*'
class core.serialization.GenericLoader[source]

Bases: object

Classical loader that read file

load(filename)[source]
Parameters:filename -- filename to convert into python object
Returns:a python object interpreted from string "text"
default_name = 'GenericLoader'
input_format = '*.py'
class core.serialization.GenericTextSaver[source]

Bases: core.serialization.AbstractSaver

Classical saver that write str(obj) into file

default_name = 'GenericSaver'
output_format = '*.py'
class core.serialization.IDeserializer[source]

Bases: object

Generic interface class for savers

default_name

alias of str

deserialize(lines, protocol=None, **kwds)[source]
update(lines, obj, protocol=None, **kwds)[source]
dtype = []
options = []
protocols = []
class core.serialization.ILoader[source]

Bases: object

default_name

alias of str

load(path, protocol=None, **kwds)[source]
update(obj, path, protocol=None, **kwds)[source]

Like "load" but update, if available, an existing object and return it. If no update is available, method must return new instance.

Ex:

data = MyData()
loader = MyLoader()
data2 = data.update('test.dat', data)
data is data2 # True if update is supported, else False  
dtype = []
options = []
protocols = []
class core.serialization.ISaver[source]

Bases: object

Generic interface class for savers

default_name

alias of str

save(obj, path, protocol=None, **kwds)[source]
dtype = []
options = []
protocols = []
class core.serialization.ISerializer[source]

Bases: object

Generic interface class for savers

default_name

alias of str

serialize(obj, protocol=None, **kwds)[source]

This method must return an iterable object, ideally an iterator

dtype = []
options = []
protocols = []
class core.serialization.PythonLoader[source]

Bases: object

Classical loader that read file and try to eval object

load(filename)[source]
Parameters:filename -- filename to convert into python object
Returns:a python object interpreted from string "text"
default_name = 'PythonLoader'
input_format = '*.py'

Previous topic

<no title>

Next topic

<no title>

This Page