hisscl/main.py

4 lines
124 B
Python
Raw Normal View History

2024-11-09 08:35:05 +00:00
import hisscl
cfg = hisscl.loads('x "y" "z" { a = "b" }')
print(cfg['x'][0].labels) # ['y', 'z']
print(cfg['x'][0]['a']) # b