Base class for any filter system.
Provides a foundational framework for filtering objects using various comparison methods. It ensures that the filtering criteria are valid and processes logical operations on these criteria.
Example
>>> obj = SomeObject()
>>> comparator = BaseComparator()
>>> comparator._methods['exact'] = lambda x, y: x == y
>>> kwargs = {'exact': "10"}
>>> # Here it is:
>>> base_filters = BaseFilters(obj)
>>> BaseFilters.test_args(comparator, **kwargs)
>>> logic_bool = BaseFilters.fix_logic_bool(**kwargs)
>>> functions = BaseFilters.fix_functions(comparator, **kwargs)
>>> # search for the object items matching the given filter
>>> for item in obj:
>>> if comparator.match(item, functions, logic_bool):
>>> yield item