The `NumberRange` validator in Python's `wtforms` library is used to ensure that a given numerical input falls within a specified range. It validates if the number is within the specified minimum and maximum values, inclusive of both endpoints. If the number is outside this range, a validation error is raised. This validator is commonly used in form validation scenarios where numerical inputs need to be restricted to a specific range.
Python NumberRange.NumberRange - 30 examples found. These are the top rated real world Python examples of wtforms.validators.NumberRange.NumberRange extracted from open source projects. You can rate examples to help us improve the quality of examples.