angelos.lib.policy.policy

Baseclasses for policies.

class angelos.lib.policy.policy.BasePolicy

Bases: angelos.lib.validation.BaseValidator

Abstract base class for composite policies. Each implementation of a policy should be specific for one singular use in the server or app. Standardized checks should be inherited through mixins.

class angelos.lib.policy.policy.BasePolicyMixin

Bases: angelos.lib.validation.BaseValidatable, abc.ABC

Abstract base class for composite policy components. The purpose for the policy mixin classes it to implement validation and applying rule checking. By implementing mixins, policy checks can be reused over several policy operations.

class angelos.lib.policy.policy.Policy

Bases: object

Abstract baseclass for all policies.