$ pip install les_iterables
A collection of utility functions for processing iterable series which aren't in itertools or more-itertools. Some are little more than simple aliases with less confusing names.
>>> from les_iterables import *
>>> is_odd = lambda x: x%2 != 0
>>>
>>> list(retain_if(is_odd, range(10))
[1, 3, 5, 7, 9]
>>>
>>> list(reject_if(is_odd, range(10))
[0, 2, 4, 6, 8]
>>>
>>> list(retain_truthy(reject_if(is_odd, range(10)))
[2, 4, 6, 8]
$ bumpversion patch
$ git push --follow-tags