# 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

  abstractmethod 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.

  abstractmethod get_config_blocks()

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

  abstractmethod get_defaults()

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

  abstractmethod preload(replacements)

    Load all configuration blocks.

  abstractmethod set_replacements(replacements)