Config wrapper for object-style usage
Project description
qrconfig
Can access dictionary items both as dictionary (like config['field']) and as an attribute (config.field), recursively: config.field.subfield.subsubfield... Also supports item assignment to update the configuration in runtime.
Usage example:
from qrconfig import QRYamlConfig
config = QRYamlConfig('config.yaml')
a = config.a
b = config['b']
config.a = 4
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
qrconfig-1.0.5.tar.gz
(2.7 kB
view hashes)