betty.privacy.resolve module

Resolve privacies.

betty.privacy.resolve.is_private(target: Any) bool

Check if the given target is private.

betty.privacy.resolve.is_public(target: Any) bool

Check if the given target is public.

betty.privacy.resolve.merge_privacies(*privacies: Privacy | HasPrivacy) Privacy

Merge multiple privacies into one.

betty.privacy.resolve.merge_secondary_privacies(privacy: Privacy | HasPrivacy, *secondary_privacies: Privacy | HasPrivacy) Privacy

Merge multiple privacies into one.

betty.privacy.resolve.resolve_privacy(privacy: Privacy | HasPrivacy) Privacy

Resolve the privacy of a value.