devel/py-serializable 0.4.1_1 DragonFly
Base class with serialization helpers for user-defined Python objects
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- APACHE20
- Categories
- devel, python
- Package size
- 17.0 KiB, 71.5 KiB installed
Description
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__.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-serializable | 0.4.1_1 |
| FreeBSD | devel/py-serializable | 1.3.1 |
| NetBSD | devel/py-serializable | 2.1.0nb1 |
| HardenedBSD | devel/py-serializable | 1.1.0 |
| GhostBSD | devel/py-serializable | 1.1.0 |
Install
Binary package:
pkg install py311-serializable
From DPorts:
cd /usr/dports/devel/py-serializable && make install clean
Dependencies
Run dependencies 3
No port depends on this one.