confu.config

config management

Classes


Config

Config(collections.abc.Mapping)

class for storing and manipulating config data

Instanced Attributes

These attributes / properties will be available on instances of the class

  • data (@property): config data, should be used for read only
  • schema (@property): return a read only copy of schema

Methods

__init__

def __init__(self, schema, data=None, meta=None)

Arguments

  • schema (confu.schema): schema object

Keyword Arguments

  • data (dict): dict to set initial data
  • meta (dict): any additional metadata to pass along with config

copy

def copy(self)

return a read only copy of data


get_nested

def get_nested(self, *args)

get a nested value, returns None if path does not exist