def get_property_by_name ( pif , name ) : return next ( ( x for x in pif . properties if x . name == name ) , None )
python get property by name string
Get a property by name
def get_property_by_name(pif, name):
    """Get a property by name"""
    return next((x for x in pif.properties if x.name == name), None)