# more-itertools/more-itertools

More routines for operating on iterables, beyond itertools

Repository: https://github.com/more-itertools/more-itertools
Canonical: https://ross.abutalabs.com/products/more-itertools
Homepage: https://more-itertools.rtfd.io
Language: Python
License: MIT
License Family: permissive
Last push: 2026-08-12T13:29:12+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 61, longevity 100
- inputs: {"age_days": 5242, "days_push": 21, "days_rel": 103, "gap_med": 97, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4089, forks 339 (observed 2026-08-28T04:08:34.542320+00:00)

## What it is
more-itertools is a Python library providing additional routines, building blocks, and recipes for working with iterables, extending the standard library's itertools module. It offers functions for grouping, chunking, windowing, peeking, and other common iteration patterns.

## Use cases
- chunk a list into fixed-size batches
- peek at the next item of an iterator without consuming it
- split an iterable into groups based on a condition
- window over a sequence with sliding windows
- flatten nested iterables
- cycle through iterables with limits

## When to choose
- you need iteration utilities beyond Python's built-in itertools
- you want well-tested, pure-Python iterable helpers with zero dependencies
- you frequently chunk, group, or window sequences

## When to avoid
- you only need basic itertools functions already in the standard library
- you need C-speed performance for hot loops where hand-rolled code is faster
- your project targets a non-Python language

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools
- platform: python
- tags: itertools, iterators, iteration, chunking, utilities, algorithms

## Member repositories
- more-itertools/more-itertools (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:34.542320+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:22.193127+00:00, confidence not recorded.
  - readme: https://github.com/more-itertools/more-itertools (fetched 2026-08-28T04:08:34.542320+00:00, sha 540686aa9e87)
  - registry_pypi: https://pypi.org/pypi/more-itertools/json (fetched 2026-08-29T09:15:37.739853+00:00, sha b7d32f867716)
- Data as of 2026-08-30T08:39:29.467469+00:00.
