savePickle

savePickle(data, file, version=4)

Save a python object as a binary file

Parameters

Name Type Description Default
data object A python object required
file str Path to the file required

Returns

Name Type Description
str the path to the file where the object is stored

See Also

readPickle : Load a python object saved with savePickle

Examples

>>> from rlike import *
>>> f = savePickle({'a': 0, 'b': ['x', 'y']}, file = 'mydata.pickle')
>>> x = readPickle('mydata.pickle')
>>> x
{'a': 0, 'b': ['x', 'y']}