Clever, quick iterators that make your smile whiter
pip install yter==1.8.0
Version 2.0.0 2018, September 13
Clever, quick iterator functions that make your smile whiter.
This will work with versions of Python 2.6+ and 3.2+. The tests also pass with recent Pypy and Jython releases.
There are many functions that process data from iterators in efficient ways.
yany
-- Extended version of the builtin any, test if any values are trueyall
-- Extended version of the builtin all, test if all values are trueylen
-- Complete an iterator and get number of valuesfirst
-- Get the first value from an iteraterablelast
-- Get the final value from an iteraterablehead
-- Get the first values from an iteraterabletail
-- Get the last values from an iteraterableminmax
-- Find the minimum and maximum values from an iterableisiter
-- Test if an object is iterable, but not a string typesequence
-- Efficient copy of non sequence datarepeat
-- Efficient lazy copy of non sequence dataThere are several iterators that wrap an existing iterator and process it's output.
call
-- Iterator that works with mixed callable typespercent
-- Iterator that skips a percentage of valuesflat
-- Iterator of values from a iterable of iteratorschunk
-- Iterator of lists with a fixed size from iterablekey
-- Iterator of pairs of key result and original valuesunique
-- Iterate only the unique valuesduplicates
-- Iterate only the duplicated valuesUtility functions that are useful to use as a key argument
formatter
-- Create a function that formats given values into stringsnumeric
-- Split a string into string and integer sectionsgetter
-- Shorthand for attrgetter, itemgetter, and methodcaller operatorsMore documentation found in the repository.