pyvaru.rulesΒΆ
Classes
ChoiceRule(apply_to: object, label: str, ...) |
Ensure that the target value is contained in a provided list of possible options. |
FullStringRule(apply_to: object, label: str, ...) |
Ensure that the target value is a non empty string object. |
IntervalRule(apply_to: object, label: str, ...) |
Ensure that the target value is contained in the provided interval. |
MaxLengthRule(apply_to: object, label: str, ...) |
Ensure that the target value has a length <= than the provided reference value. |
MaxValueRule(apply_to: object, label: str, ...) |
Ensure that the target value is <= than the provided reference value. |
MinLengthRule(apply_to: object, label: str, ...) |
Ensure that the target value has a length >= than the provided reference value. |
MinValueRule(apply_to: object, label: str, ...) |
Ensure that the target value is >= than the provided reference value. |
PatternRule(apply_to: object, label: str, ...) |
Ensure that the target string respects the given pattern. |
RangeRule(apply_to: object, label: str, ...) |
Ensure that the target value is contained in the provided range. |
TypeRule(apply_to: object, label: str, ...) |
Ensure that the target value is an instance of the given type. |
ValidationRule(apply_to: object, label: str, ...) |
Base abstract rule class from which concrete ones must inherit from. |