betty.privatizer module¶ Provide an API to determine if information should be kept private. class betty.privatizer.Privatizer[source]¶ Bases: object Privatize resources. __init__(lifetime_threshold: int, *, localizer: Localizer)[source]¶ has_expired(subject: Person | Event | Date | None, generations_ago: int = 0) → bool[source]¶ Check if a subject of the given generation has expired. privatize(subject: HasPrivacy) → None[source]¶ Privatize a resource.