@validator
def truthy(value):
    return (
        value and
        (not isinstance(value, six.string_types) or value.strip())
    )
Validate that given value is not a falsey value.
dataset/ETHPy150Open SickRage/SickRage/lib/validators/truthy.py/truthy