aboutsummaryrefslogtreecommitdiff
path: root/devel/py-serializable/pkg-descr
blob: 73487be7614fb60d4ebff8fbec669ca82f842574 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
Base class with serialization methods for user-defined Python objects.

Classes which inherit from Serializable are enabled with default implementations
of to_json, from_json, __reduce__ (for pickling), and other serialization
helpers. A derived class must either have a member data matching the name of
each argument to __init__ or, alternatively, must provide a user-defined
to_dict() method which returns a dictionary whose keys match the arguments to
__init__.

WWW: https://pypi.org/project/serializable/