pyre.constraints¶
Submodules¶
pyre.constraints.Andpyre.constraints.Betweenpyre.constraints.Comparisonpyre.constraints.Constraintpyre.constraints.Equalpyre.constraints.Greaterpyre.constraints.GreaterEqualpyre.constraints.Lesspyre.constraints.LessEqualpyre.constraints.Likepyre.constraints.Notpyre.constraints.Orpyre.constraints.Setpyre.constraints.Subsetpyre.constraints.exceptions
Package Contents¶
-
pyre.constraints.isAll(*constraints)¶ Passes when all the constraints in its list pass
-
pyre.constraints.isAny(*constraints)¶ Passes when any of the constraints in its list passes
-
pyre.constraints.isBetween(*, low, high)¶ Check that a numeric value is between {low} and {high}
-
pyre.constraints.isEqual(*, value)¶ Check that a numeric value is equal to {value}
-
pyre.constraints.isGreater(*, value)¶ Check that a numeric value is greater than {value}
-
pyre.constraints.isGreaterEqual(*, value)¶ Check that a numeric value is greater or equal to {value}
-
pyre.constraints.isLess(*, value)¶ Check that a numeric value is less than {value}
-
pyre.constraints.isLessEqual(*, value)¶ Check that a numeric value is less than or equal to {value}
-
pyre.constraints.isLike(*, regexp)¶ Check that the value matches {regexp}, where {regexp} is a re-style regular expression. See the re builtin module
-
pyre.constraints.isMember(*choices)¶ Check that the value supplied is one of {choices}
-
pyre.constraints.isNegative()¶ Check that the given value is less than zero
-
pyre.constraints.isNot(constraint)¶ Check that value makes {constraint} fail
-
pyre.constraints.isPositive()¶ Check that the given value is greater than or equal to zero
-
pyre.constraints.isSubset(*, choices)¶ Check that the given set is a subset of {choices}