betty.deriver module

Provide an API to derive information from ancestries, and create new entities or update existing ones.

class betty.deriver.Derivation[source]

Bases: Enum

Derivation types.

CREATE = 2

The derivation created new data.

NONE = 1

No derivation took place.

UPDATE = 3

The derivation updated existing data.

final class betty.deriver.Deriver[source]

Bases: object

Derive information from ancestries, and create new entities or update existing ones.

__init__(ancestry: Ancestry, lifetime_threshold: int, event_types: PluginRepository[EventType], derivable_event_types: set[type[DerivableEventType]], *, localizer: Localizer)[source]
async derive() None[source]

Derive additional data.