pyre.constraints.Constraint

Module Contents

class pyre.constraints.Constraint.Constraint

The base class for constraints

validate(self, value, **kwds)

The default behavior for constraints is to raise a ConstraintViolationError.

Override to implement a specific test

__call__(self, value, **kwds)

Interface to make constraints callable

__and__(self, other)

Enable the chaining of constraints using the logical operators

__or__(self, other)

Enable the chaining of constraints using the logical operators