Undocumented
Class |
|
Invoke's primary configuration handling class. |
Class |
|
Helper class implementing nested dict+attr access for `.Config`. |
Exception |
|
Undocumented |
Function | copy |
Return a fresh copy of ``source`` with as little shared state as possible. |
Function | excise |
Remove key pointed at by ``keypath`` from nested dict ``dict_``, if exists. |
Function | load |
Undocumented |
Function | merge |
Recursively merge dict ``updates`` into dict ``base`` (mutating ``base``.) |
Function | obliterate |
Remove all (nested) keys mentioned in ``deletions``, from ``base``. |
Function | _format |
Undocumented |
Function | _merge |
Undocumented |
Return a fresh copy of ``source`` with as little shared state as possible. Uses `merge_dicts` under the hood, with an empty ``base`` dict; see its documentation for details on behavior. .. versionadded:: 1.0
Recursively merge dict ``updates`` into dict ``base`` (mutating ``base``.) * Values which are themselves dicts will be recursed into. * Values which are a dict in one input and *not* a dict in the other input (e.g. if our inputs were ``{'foo': 5}`` and ``{'foo': {'bar': 5}}``) are irreconciliable and will generate an exception. * Non-dict leaf values are run through `copy.copy` to avoid state bleed. .. note:: This is effectively a lightweight `copy.deepcopy` which offers protection from mismatched types (dict vs non-dict) and avoids some core deepcopy problems (such as how it explodes on certain object types). :returns: The value of ``base``, which is mostly useful for wrapper functions like `copy_dict`. .. versionadded:: 1.0