aitune.utils.validation
Validation helpers.
Module Contents
Functions
Data
API
Validate that value is within the provided inclusive range.
Parameters:
value
Numeric value to validate.
min_value
Inclusive lower bound.
max_value
Inclusive upper bound.
name
Name of the value being validated.
Raises:
ValueError: If value is outside the inclusive range.
Validate that value is greater than or equal to 0.
Parameters:
value
Numeric value to validate.
name
Name of the value being validated.
Raises:
ValueError: If value is less than 0.
Validate that value is greater than 0.
Parameters:
value
Numeric value to validate.
name
Name of the value being validated.
Raises:
ValueError: If value is less than or equal to 0.