betty.ancestry package

Subpackages

Submodules

Module contents

Provide Betty’s main data model.

final class betty.ancestry.Ancestry[source]

Bases: MultipleTypesEntityCollection[Entity]

An ancestry contains all the entities of a single family tree/genealogical data set.

__init__(*entities: Entity, entity_type_id_to_type_mapping: PluginIdToTypeMapping[Entity])[source]
unchecked() Iterator[None][source]

Disable the addition entities’ associates when adding those entities to the ancestry.

It is the caller’s responsibility to ensure all associates are added to the ancestry. If this is done, using this context manager improves performance.