MSeifert04
iteration_utilities
C

Utilities based on Pythons iterators and generators.

Last updated Jun 6, 2026
98
Stars
11
Forks
1
Issues
0
Stars/day
Attention Score
24
Language breakdown
No language data available.
โ–ธ Files click to expand
README

Iteration utilities


Utilities based on Pythons iterators and generators.

The full list of functions and classes included in this package:

========================================================================================================== ================================================================================================================================ ============================================================================================================== ====================================================================================================== accumulate <https://iteration-utilities.readthedocs.io/en/latest/generated/accumulate.html> alldistinct <https://iteration-utilities.readthedocs.io/en/latest/generated/alldistinct.html> allequal <https://iteration-utilities.readthedocs.io/en/latest/generated/allequal.html> allisinstance <https://iteration-utilities.readthedocs.io/en/latest/generated/allisinstance.html> allmonotone <https://iteration-utilities.readthedocs.io/en/latest/generated/allmonotone.html> alwaysiterable <https://iteration-utilities.readthedocs.io/en/latest/generated/alwaysiterable.html> anyisinstance <https://iteration-utilities.readthedocs.io/en/latest/generated/anyisinstance.html> applyfunc <https://iteration-utilities.readthedocs.io/en/latest/generated/applyfunc.html> argmax <https://iteration-utilities.readthedocs.io/en/latest/generated/argmax.html> argmin <https://iteration-utilities.readthedocs.io/en/latest/generated/argmin.html> argsorted <https://iteration-utilities.readthedocs.io/en/latest/generated/argsorted.html> chained <https://iteration-utilities.readthedocs.io/en/latest/generated/chained.html> clamp <https://iteration-utilities.readthedocs.io/en/latest/generated/clamp.html> combinationsfromrelations <https://iteration-utilities.readthedocs.io/en/latest/generated/combinationsfromrelations.html> complement <https://iteration-utilities.readthedocs.io/en/latest/generated/complement.html> constant <https://iteration-utilities.readthedocs.io/en/latest/generated/constant.html> consume <https://iteration-utilities.readthedocs.io/en/latest/generated/consume.html> countitems <https://iteration-utilities.readthedocs.io/en/latest/generated/countitems.html> deepflatten <https://iteration-utilities.readthedocs.io/en/latest/generated/deepflatten.html> dotproduct <https://iteration-utilities.readthedocs.io/en/latest/generated/dotproduct.html> double <https://iteration-utilities.readthedocs.io/en/latest/generated/double.html> duplicates <https://iteration-utilities.readthedocs.io/en/latest/generated/duplicates.html> empty <https://iteration-utilities.readthedocs.io/en/latest/generated/empty.html> first <https://iteration-utilities.readthedocs.io/en/latest/generated/first.html> flatten <https://iteration-utilities.readthedocs.io/en/latest/generated/flatten.html> flip <https://iteration-utilities.readthedocs.io/en/latest/generated/flip.html> getitem <https://iteration-utilities.readthedocs.io/en/latest/generated/getitem.html> groupedby <https://iteration-utilities.readthedocs.io/en/latest/generated/groupedby.html> grouper <https://iteration-utilities.readthedocs.io/en/latest/generated/grouper.html> InfiniteIterable <https://iteration-utilities.readthedocs.io/en/latest/generated/InfiniteIterable.html> insert <https://iteration-utilities.readthedocs.io/en/latest/generated/insert.html> intersperse <https://iteration-utilities.readthedocs.io/en/latest/generated/intersperse.html> ipartition <https://iteration-utilities.readthedocs.io/en/latest/generated/ipartition.html> iseven <https://iteration-utilities.readthedocs.io/en/latest/generated/iseven.html> isiterable <https://iteration-utilities.readthedocs.io/en/latest/generated/isiterable.html> isNone <https://iteration-utilities.readthedocs.io/en/latest/generated/isNone.html> isnotNone <https://iteration-utilities.readthedocs.io/en/latest/generated/isnotNone.html> isodd <https://iteration-utilities.readthedocs.io/en/latest/generated/isodd.html> ItemIdxKey <https://iteration-utilities.readthedocs.io/en/latest/generated/ItemIdxKey.html> iterexcept <https://iteration-utilities.readthedocs.io/en/latest/generated/iterexcept.html> Iterable <https://iteration-utilities.readthedocs.io/en/latest/generated/Iterable.html> itersubclasses <https://iteration-utilities.readthedocs.io/en/latest/generated/itersubclasses.html> last <https://iteration-utilities.readthedocs.io/en/latest/generated/last.html> ManyIterables <https://iteration-utilities.readthedocs.io/en/latest/generated/ManyIterables.html> merge <https://iteration-utilities.readthedocs.io/en/latest/generated/merge.html> minmax <https://iteration-utilities.readthedocs.io/en/latest/generated/minmax.html> ncycles <https://iteration-utilities.readthedocs.io/en/latest/generated/ncycles.html> nth <https://iteration-utilities.readthedocs.io/en/latest/generated/nth.html> nthcombination <https://iteration-utilities.readthedocs.io/en/latest/generated/nthcombination.html> one <https://iteration-utilities.readthedocs.io/en/latest/generated/one.html> packed <https://iteration-utilities.readthedocs.io/en/latest/generated/packed.html> pad <https://iteration-utilities.readthedocs.io/en/latest/generated/pad.html> partial <https://iteration-utilities.readthedocs.io/en/latest/generated/partial.html> partition <https://iteration-utilities.readthedocs.io/en/latest/generated/partition.html> Placeholder <https://iteration-utilities.readthedocs.io/en/latest/generated/Placeholder.html> powerset <https://iteration-utilities.readthedocs.io/en/latest/generated/powerset.html> radd <https://iteration-utilities.readthedocs.io/en/latest/generated/radd.html> randomcombination <https://iteration-utilities.readthedocs.io/en/latest/generated/randomcombination.html> randompermutation <https://iteration-utilities.readthedocs.io/en/latest/generated/randompermutation.html> randomproduct <https://iteration-utilities.readthedocs.io/en/latest/generated/randomproduct.html> rdiv <https://iteration-utilities.readthedocs.io/en/latest/generated/rdiv.html> reciprocal <https://iteration-utilities.readthedocs.io/en/latest/generated/reciprocal.html> remove <https://iteration-utilities.readthedocs.io/en/latest/generated/remove.html> repeatfunc <https://iteration-utilities.readthedocs.io/en/latest/generated/repeatfunc.html> replace <https://iteration-utilities.readthedocs.io/en/latest/generated/replace.html> replicate <https://iteration-utilities.readthedocs.io/en/latest/generated/replicate.html> returncalled <https://iteration-utilities.readthedocs.io/en/latest/generated/returncalled.html> returnFalse <https://iteration-utilities.readthedocs.io/en/latest/generated/returnFalse.html> returnfirstarg <https://iteration-utilities.readthedocs.io/en/latest/generated/returnfirstarg.html> returnidentity <https://iteration-utilities.readthedocs.io/en/latest/generated/returnidentity.html> returnNone <https://iteration-utilities.readthedocs.io/en/latest/generated/returnNone.html> returnTrue <https://iteration-utilities.readthedocs.io/en/latest/generated/returnTrue.html> rfdiv <https://iteration-utilities.readthedocs.io/en/latest/generated/rfdiv.html> rmod <https://iteration-utilities.readthedocs.io/en/latest/generated/rmod.html> rmul <https://iteration-utilities.readthedocs.io/en/latest/generated/rmul.html> roundrobin <https://iteration-utilities.readthedocs.io/en/latest/generated/roundrobin.html> rpow <https://iteration-utilities.readthedocs.io/en/latest/generated/rpow.html> rsub <https://iteration-utilities.readthedocs.io/en/latest/generated/rsub.html> second <https://iteration-utilities.readthedocs.io/en/latest/generated/second.html> Seen <https://iteration-utilities.readthedocs.io/en/latest/generated/Seen.html> sideeffects <https://iteration-utilities.readthedocs.io/en/latest/generated/sideeffects.html> split <https://iteration-utilities.readthedocs.io/en/latest/generated/split.html> square <https://iteration-utilities.readthedocs.io/en/latest/generated/square.html> starfilter <https://iteration-utilities.readthedocs.io/en/latest/generated/starfilter.html> successive <https://iteration-utilities.readthedocs.io/en/latest/generated/successive.html> tabulate <https://iteration-utilities.readthedocs.io/en/latest/generated/tabulate.html> tail <https://iteration-utilities.readthedocs.io/en/latest/generated/tail.html> teelookahead <https://iteration-utilities.readthedocs.io/en/latest/generated/teelookahead.html> third <https://iteration-utilities.readthedocs.io/en/latest/generated/third.html> uniqueeverseen <https://iteration-utilities.readthedocs.io/en/latest/generated/uniqueeverseen.html> uniquejustseen <https://iteration-utilities.readthedocs.io/en/latest/generated/uniquejustseen.html>_ ========================================================================================================== ================================================================================================================================ ============================================================================================================== ======================================================================================================

But also some convenience classes providing a lazy and chainable interface for function evaluation:

  • Iterable <https://iteration-utilities.readthedocs.io/en/latest/generated/Iterable.html>_
  • InfiniteIterable <https://iteration-utilities.readthedocs.io/en/latest/generated/InfiniteIterable.html>_
  • ManyIterables <https://iteration-utilities.readthedocs.io/en/latest/generated/ManyIterables.html>_

.. image:: https://img.shields.io/pypi/pyversions/iteration_utilities.svg :target: https://www.python.org/ :alt: Supported Python versions

Documentation ^^^^^^^^^^^^^

.. image:: https://readthedocs.org/projects/iteration-utilities/badge/?version=stable :target: http://iteration-utilities.readthedocs.io/en/stable/?badge=stable :alt: Documentation Status

.. image:: https://readthedocs.org/projects/iteration-utilities/badge/?version=latest :target: http://iteration-utilities.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

Downloads ^^^^^^^^^

.. image:: https://img.shields.io/pypi/v/iteration_utilities.svg :target: https://pypi.python.org/pypi/iteration_utilities :alt: PyPI Project

.. image:: https://img.shields.io/github/release/MSeifert04/iteration_utilities.svg :target: https://github.com/MSeifert04/iteration_utilities/releases :alt: GitHub Project

.. image:: https://anaconda.org/conda-forge/iteration_utilities/badges/version.svg :target: https://anaconda.org/conda-forge/iteration_utilities :alt: Anaconda-Server Badge

Test status ^^^^^^^^^^^

.. image:: https://ci.appveyor.com/api/projects/status/7dcitqxmh82d0x0m?svg=true :target: https://ci.appveyor.com/project/MSeifert04/iteration-utilities :alt: AppVeyor Status

.. image:: https://codecov.io/gh/MSeifert04/iteration_utilities/branch/master/graph/badge.svg :target: https://codecov.io/gh/MSeifert04/iteration_utilities :alt: Coverage Status

.. image:: https://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat :target: https://mseifert04.github.io/iutils_benchmarks/ :alt: Benchmarks

ยฉ 2026 GitRepoTrend ยท MSeifert04/iteration_utilities ยท Updated daily from GitHub