Saving Objects¶
True-Q™ objects can be saved to disk using the trueq.utils.save()
function.
They are saved in the Python pickle
serial binary format and then compressed. After these objects have been saved to disk,
they can be reloaded into Python with the global trueq.utils.load()
function.
The saved file persists beyond the call to load()
and can be
reused.
Independently, many objects also include to_dict
and from_dict
methods, see for
instance to_dict()
and from_dict()
.
The dictionary formats contain only built-in Python objects.
Note
The file extension .tq
is encouraged, but not necessary.