Configuration and property persistence

configreader + propertylogger: reading JSON configuration, persisting the property tree and monitoring active streams.

Modules

ModuleFunction
configreader.ConfigReaderRead-only wrapper: reads configfile.json (getConfiguration())
configreader.Config()Reads configfile.json and returns the configuration dictionary
configreader.Properties()Reads the properties file properties.json and returns a dictionary
propertylogger.run_propertylogger()Property tree persistence + INIT acknowledgement (Property Logger service)
datalogger.DataStreamLoggerMonitors active data streams and writes them into the property tree
imagelogger.ImageStreamLoggerMonitors active image streams and writes them into the property tree

Usage

from quatm.servers.configreader import ConfigReader

cfg = ConfigReader()
config = cfg.getConfiguration()   # Full configuration dictionary