pyunitwizard.QuantityRecordBundle#
- class pyunitwizard.QuantityRecordBundle[source]#
Many small quantities under one seal, for documents such as a card.
A separate record per scalar costs about 350 bytes; a bundle about half, with a single digest over every entry, its unit description and its values.
Methods
__init__()from_dict(data)Read a stored bundle, refusing it unless the seal and every unit check pass.
from_quantities(quantities, *[, kinds])Seal a mapping of field names to quantities (any PyUnitWizard form).
to_dict()The sealed, JSON-ready representation (strict JSON; non-finite values refused).
to_quantities(*[, expected, form])Computing quantities, after the handshake.
Attributes
fields