skip to navigation
skip to content

dodge 0.1.6

Create data objects that can be easily converted to and from dicts suitable for use as JSON

Latest Version: 0.1.9

Dodge is a Python library that allows easy creation of data objects. These data objects can then be converted from and to dictionaries, allowing easy JSON serialisation.


import dodge

Instrument = dodge.data_class("Instrument", [

saxophone = Instrument("saxophone", "brass")

serialised_saxophone = dodge.obj_to_dict(saxophone)
unserialised_saxophone = dodge.dict_to_obj(serialised_saxophone)

print unserialised_saxophone.material # Prints "brass"


2-Clause BSD

File Type Py Version Uploaded on Size
dodge-0.1.6.tar.gz (md5) Source 2014-08-29 2KB
  • Downloads (All Versions):
  • 10 downloads in the last day
  • 266 downloads in the last week
  • 1069 downloads in the last month