dodge 0.1.2
pip install dodge==0.1.2
Newer version available (0.1.9)
Released:
Create data objects that can be easily converted to and from dicts suitable for use as JSON
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: UNKNOWN
- Author: Michael Williamson
- Tags data , object , serialise , serialisation , json
Project description
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
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: UNKNOWN
- Author: Michael Williamson
- Tags data , object , serialise , serialisation , json
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dodge-0.1.2.tar.gz
.
File metadata
- Download URL: dodge-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9d955c9e599fefc80e68d55c9c09a70f8d69db9013cdcb64c96bfb6f858c50db
|
|
MD5 |
4086c633580df4f41c21a680056a99a8
|
|
BLAKE2b-256 |
07803c530afb080f109a91118d172f7e61ca51896f416fc5129b287bf144a64c
|