FreeBSD.software
Home/devel/py311-serializable

py311-serializable

0.4.1_1

Base class with serialization helpers for user-defined Python objects

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__.

Origin: devel/py-serializable
Category: devel
Size: 71.5KiB
License: APACHE20
Maintainer: yuri@FreeBSD.org
Dependencies: 3 packages
Required by: 0 packages
$pkg install py311-serializable

Dependencies (3)

More in devel