The validation.py module#
Summary#
Check that a value is a percentage expressed between 0 and 100. |
Description#
Shared numeric, collection, and path validation helpers.
Module detail#
- validation.check_percentage(name, value)#
Check that a value is a percentage expressed between 0 and 100.
- Parameters:
- Raises:
ValueErrorIf
valueis not within[0, 100].