def ILIKE ( pattern ) : return P ( lambda x : fnmatch . fnmatch ( x . lower ( ) , pattern . lower ( ) ) )
how to make variables case insensitive in python
Unix shell - style wildcards . Case - insensitive
def ILIKE(pattern):
    """Unix shell-style wildcards. Case-insensitive"""
    return P(lambda x: fnmatch.fnmatch(x.lower(), pattern.lower()))