betty.requirement module

Requirements checking.

class betty.requirement.RequirableDecorator

Bases: CallableDecorator, ABC, Generic

A base class for requirements that can also be used as decorators.

__init__(*args: Any, **kwargs: Any)
exception betty.requirement.UnmetRequirement

Bases: HumanFacingException

Raised when a requirement is not met.

async betty.requirement.check(services: ServiceLevel, *requirements: Requirement) bool

Check if one or more requirements are met.