Welcome to local-migrator’s documentation!¶
local-migrator
is package for support of data persistance between sessions
and versions.
Currently it support for json
and cbor2
backends.
local-migrator
support serialize and deserialize following class and its subclasses:
(referring to local_migrator.object_encoder()
):
pydantic.BaseModel
numpy.integer
(change to pure int)numpy.floating
(change to pure float)pathlib.Path
(Serialized to string)Any class with an
as_dict()
method. This method should return a dictionary of valid constructor arguments.