Dave Cinege Git Repo thesaurus / 6696f50
README.rst edit Dave Cinege 2 years ago
2 changed file(s) with 12 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3535 cfg = thescfg()
3636 >>> cfg.parse(cfgs)
3737 {'prog': {'version': 123}, 'opt': {'verbose': True}, 'hi': 'Hello'}
38
39 import json
40 >>> print(json.dumps(cfg, indent=4, separators=(',', ': ')))
41 {
42 "prog": {
43 "version": 123
44 },
45 "opt": {
46 "verbose": true
47 },
48 "hi": "Hello"
49 }
3850
3951
4052 Quick start
2121 import os
2222 import sys
2323 import json
24
2524
2625 from thesauruscfg import thescfg
2726