Skip to main content

hjs, the missing bit of hjson

Project description

build gpa cover

hjs is a thin wrapper around hjson

https://duckduckgo.com/i/bf0eb228.png
>>> from hjs import  hjs, load, loads, dump, load

>>> da = loads("""
... {
...    a: 1
...    b: are you ok with it ?
...    c: '''
...       what a rest,
...       isn't it ?
...       '''
...    t: {
...        a: you get the point, now :-)
...    },
...    values: 42
... }
... """)

>>> assert da['values'] == 42
>>> assert da.t.a == "you get the point, now :-)"

install as usual with pip install hjs

By the way, you should support pypi, because, given the strategic importance of this project, it is way under budgeted, as I heard…

Regards, @CJC_2017.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hjs-1.1.7.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

hjs-1.1.7-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page