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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hjs-0.0.8.tar.gz.
File metadata
- Download URL: hjs-0.0.8.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb72ed5d359f37b46fff0e2ea8d77f5aecc033c5a5e5a439257792ebdbc268d
|
|
| MD5 |
e21e3d11668c8794aedb9f1e6fb063b7
|
|
| BLAKE2b-256 |
d84a4eb717a4b7ed334dbaead7eec70b591d8fb0203df66804047ad4ecbe822e
|
File details
Details for the file hjs-0.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: hjs-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f79c6156b6d063aac4d6739435cf84ce2560277628e71d50e5f0611394c5b674
|
|
| MD5 |
dc36bfbb045063ed3fdbf16bddd0c49a
|
|
| BLAKE2b-256 |
37f1f306833e3a8ffa9cc4793b4e4fefa29fed3a2a36f75fe19c24992a0e2ca3
|