databroker.wrap_in_doct

databroker.wrap_in_doct(name, doc)[source]

Put document contents into a doct.Document object.

A doct.Document is a subclass of dict that:

  • is immutable

  • provides human-readable __repr__() and __str__()

  • supports dot access (__getattr__()) as a synonym for item access (__getitem__()) whenever possible