dautil.conf

This module contains configuration utilities.

dautil.conf.file_exists(tocheck)

Checks whether a file exists.

Parameters:tocheck – The path of the file.
Returns:True if the file exists.
dautil.conf.read_rc()

Reads a configuration file in the JSON format.

Returns:A dictionary representing the contents of the configuration file.
dautil.conf.update_rc(key, updates)

Updates the JSON configuration file.

Parameters:
  • key – The key of the record to update.
  • updates – Values with which to update the relevant record.

Previous topic

dautil.collect

Next topic

dautil.data

This Page