Configuration Implementation

Implementation regarding configuration files & their internal representation to the dput profile code.

class dput.config.AbstractConfig(configs)

Abstract Configuration Object. All concrete configuration implementations must subclass this object.

Basically, all subclasses are bootstrapped in the same-ish way:

  • preload
  • get_defaults
  • set defaults
get_config(name, ignore_errors=False)

Get a configuration block. What this means is generally up to the implementation. However, please keep things sane and only return sensual upload target blocks.


Get a list of all configuration blocks. Strings in a list.


Get the defaults that concrete configs get overlaid on top of. In theory, this is set during the bootstrapping process.


Load all configuration blocks.