code: def __criteria(self, obj, matches=None, mt=None, lt=None, eq=None):
          '''
          Returns True if object is aligned to the criteria.
  
          :param obj:
          :param matches:
          :param mt:
          :param lt:
          :param eq:
          :return: Boolean
          '''
          # Fail matcher if "less than"
          for field, value in (mt or {}).items():
              if getattr(obj, field) <= value:
                  return False
  
          # Fail matcher if "more than"
          for field, value in (lt or {}).items():
              if getattr(obj, field) >= value:
                  return False
  
          # Fail matcher if "not equal"
          for field, value in (eq or {}).items():
              if getattr(obj, field) != value:
                  return False
  
          # Fail matcher if "doesn't match"
          for field, value in (matches or {}).items():
              if not re.search(value, str(getattr(obj, field))):
                  return False
  
          return Truf __criteria(self, obj, matches=None, mt=None, lt=None, eq=None):
          '''
          Returns True if object is aligned to the criteria.
  
          :param obj:
          :param matches:
          :param mt:
          :param lt:
          :param eq:
          :return: Boolean
          '''
          # Fail matcher if "less than"
          for field, value in (mt or {}).items():
              if getattr(obj, field) <= value:
                  return False
  
          # Fail matcher if "more than"
          for field, value in (lt or {}).items():
              if getattr(obj, field) >= value:
                  return False
  
          # Fail matcher if "not equal"
          for field, value in (eq or {}).items():
              if getattr(obj, field) != value:
                  return False
  
          # Fail matcher if "doesn't match"
          for field, value in (matches or {}).items():
              if not re.search(value, str(getattr(obj, field))):
                  return False
  
          return True
docs: Returns True if object is aligned to the criteria.
  
          :param obj:
          :param matches:
          :param mt:
          :param lt:
          :param eq:
          :return: Boolean