lysol/dogfood
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
dogfood ======= JSON serialization for custom Python classes. To make any class serializable, either * add the attribute __food__ * subclass Food You'll also need to supply an __encode__() method that returns a list in the form: def __encode__(self): return ['ClassName', [self.arg, self.arg2]] Where ClassName is the name of your class, and the arguments in the list are those to create a new instance. This module does not support repopulating the __dict__ of the object, just recreating from the __init__ arguments. Requires ======== jsonlib Cython, for building
About
Reasonable JSON serialization for custom classes
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published