def convert_boolean(inpt):

    val = False
    if str(inpt).lower() in ['false', 'f']:
        val = False
    else:
        try:
            val = int(inpt)
            if val == 0:
                val = False
            else:
                val = True
        except:
            val = True
    return val
Return boolean value from input boolean input
dataset/ETHPy150Open geopython/pywps/pywps/inout/literaltypes.py/convert_boolean