watson.validators.numeric

class watson.validators.numeric.Range(min=None, max=None, message='"{value}" is not between {min} and {max}')[source]

Validates the length of a string.

Example:

validator = Length(1, 10)
validator('Test')  # True
validator('Testing maximum')  # raises ValueError
__init__(min=None, max=None, message='"{value}" is not between {min} and {max}')[source]