as library (dictknife)

  • pp
  • deepmerge
  • deepequal
  • loading
  • diff
  • walkers
  • accessor

pp

result

with OrderedDict

result

deepmerge

result

with override=True

result

deepequal

result

with normalize option

result

result

loading

supported formats

  • yaml
  • json
  • toml
from dictknife import loading

loading.setup()

# load
d = loading.loadfile("foo.yaml")
d = loading.loadfile(None, format="yaml")  # from sys.stdin

# dump
loading.dumpfile(d, "foo.json")
loading.dumpfile(d, None, format="toml")  # to sys.stdout

walkers

result

Note

todo: description about chains and operator and context,…

accessor

accessor is convenience wrapper for accessing dict.

result