betty.porters.entity_as_reference module

Port entities as entity references.

final class betty.porters.entity_as_reference.EntityAsReferencePorter

Bases: Porter[AssociateT | EntityReference, PortableData], Generic

Port entities as entity references.

classmethod dump(data: AssociateT | EntityReference[AssociateT], /) PortableData

Dump data to its portable form.

classmethod load(portable: PortableData, /) EntityReference[AssociateT]

Load data from its portable form.