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.
Example
import dodge
Instrument = dodge.data_class("Instrument", [
"name",
"material",
])
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"
License
Metadata
Release files for dodge 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dodge-0.1.9.tar.gz | 3.9 kB | Details |
Release files / dodge-0.1.9.tar.gz
| Download URL | dodge-0.1.9.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e05bdbaf6a98c9bc92a0e3b8d3066bb887fe2e2590e57d47762f4730bd456e1
|
|
BLAKE2b-256 checksum How to use checksums |
ae955efbf0d11ccfe6ade1d0c7d637de1e9a38bd7b73742c14c23d1e6d1ce406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |