simple-json-config

A simple json config class to handle all your config data


Keywords
config, json, settings
License
MIT
Install
pip install simple-json-config==0.1

Documentation

simple_json_config

This is a plain simple (less than 60 lines) jet powerful json config class, easy to use in your project where you can store all your app settings.

Examples:

cfg.noot="noot"
cfg['aap']="mies"
print ("res1:",cfg.noot)
print ("res2:",cfg['aap'])
print ("res3:",cfg.aap)

- autoSave will save after every change. 
- configFile is the name of your config. 
  It will be stored in the same folder as your main python script.
- the variable default holds all the info that will be written if 
  either the file does not exist or the json is invalid.

Hope you like it, easy enough to implement in your project.