Configuration#

class pydicer.config.PyDicerConfig(working_dir=None)#
get_config(name: str) object#

Get the value of the config item with the specified name

Parameters:

name (str) – Config item name

Raises:

AttributeError – Config value with name doesn’t exist

Returns:

Value of the config with the given name

Return type:

object

get_working_dir()#

Get the working directory configured for the project.

Returns:

The working directory

Return type:

pathlib.Path

save_config()#

Save the config to the pydicer directory

set_config(name: str, value: object)#

Set the value for the config with the given name

Parameters:
  • name (str) – The name of the config to set

  • value (object) – The value of the config

Raises:
  • AttributeError – Config value with name doesn’t exist

  • ValueError – Config value is of the wrong type