Repository URL to install this package:
|
Version:
4.2.35 ▾
|
def validate_int_value(value, lower_bound, upper_bound=None, **kwargs):
if isinstance(value, str):
value = int(value)
if value < lower_bound:
return False
if upper_bound and value > upper_bound:
return False
return True