# pytoolz/toolz

A functional standard library for Python.

Repository: https://github.com/pytoolz/toolz
Canonical: https://ross.abutalabs.com/products/toolz
Homepage: http://toolz.readthedocs.org/
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-01-01T18:01:22+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 60, release rhythm 20, longevity 100
- inputs: {"age_days": 4738, "days_push": 244, "days_rel": 320, "gap_med": 377, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5152, forks 279 (observed 2026-08-28T04:09:11.413104+00:00)

## What it is
Toolz is a pure-Python functional standard library providing utility functions for iterators, higher-order functions, and dictionaries, inspired by functional languages like Clojure. It has no dependencies beyond the standard library and includes a Cython-accelerated drop-in replacement (cytoolz).

## Use cases
- group and deduplicate iterables in Python
- compose functions into pipelines
- memoize and curry functions
- manipulate and merge dictionaries immutably
- build wordcount-style data processing pipelines
- add functional programming utilities without heavy dependencies

## When to choose
- you want lightweight functional utilities in pure Python with zero dependencies
- you need composable iterator, function, and dict helpers
- you want a Clojure/Underscore-style toolkit for Python

## When to avoid
- you need async-first functional utilities
- you prefer built-in itertools/functools only
- you need heavy data processing better served by pandas or numpy

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools
- platform: python, cross-platform
- tags: functional-programming, itertools, functools, dict-utilities, pure-python, zero-dependency, algorithms

## Member repositories
- pytoolz/toolz (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.413104+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:01:56.835272+00:00, confidence not recorded.
  - readme: https://github.com/pytoolz/toolz (fetched 2026-08-28T04:09:11.413104+00:00, sha 25e0bd4f3080)
  - registry_pypi: https://pypi.org/pypi/toolz/json (fetched 2026-08-29T08:56:38.004396+00:00, sha 81ccaa875e87)
- Data as of 2026-08-30T08:39:29.467469+00:00.
