Utility class for managing json tree data as python objects. Recursive depth dictionaries with keys as attributes and json serialization.
Project description
Travis integration TBD
jsontree is a simple module for quickly building manipulating and modifying rich json data in python.
Datetime objects are serialized out ti the ISO format which is easilly used in javascript. ISO formatted datetime strings will be deserialized into datetime objects.
import jsontree
import datetime
data = jsontree.jsontree()
data.username = 'doug'
data.meta.date = datetime.datetime.now()
data.somethingelse = [1,2,3]
data['username'] == 'doug'
ser = jsontree.dumps(data)
backagain = jsontree.loads(ser)
cloned = jsontree.clone(data)
Project details
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file jsontree-0.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: jsontree-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f4e86550880d5208bed5e336db8d48d5660ec8da2f30310cb286174fe033af9 |
|
MD5 | 958ad3b3e2dc14daea91b72c519ac683 |
|
BLAKE2b-256 | bf5ee5899f4df20a4bfd68967d9518e10cae02fc753b25fb314af4a482aec162 |