hjs, the missing bit of hjson-py
Project description
hjs is a thin wrapper around hjson
>>> from hjs import hjs, dumps, loads, dump, load
>>> da = hjs("""
... {
... a: 1
... b: are you ok with it ?
... c: '''
... what a rest,
... isn't it ?
... '''
... t: {
... a: you get the point, now :-)
... },
... value: 42
... }
... """)
>>> assert da['value'] == 42
>>> assert da.t.a == "you get the point, now :-)"
install as usual with pip install hjs
Regards, @CJC.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hjs-0.0.8.tar.gz
(9.1 kB
view hashes)