Library / SDK
pytoolz/toolz avatar
pytoolz/toolz

toolz has no version file: what the packaging table and the README disagree about

A functional standard library for Python.

5,160 stars306 forksPythonNOASSERTION

At a glance

What is it?
toolz is a small pure-Python utility library for iterators, functions and dictionaries, kept alive by one named maintainer. Its version number is assembled from git tags at build time, its example leans on an undocumented namespace, and some of its shipped packages are not described in the README.
Who is it for?
toolz is the right choice when you want list processing and higher-order helpers with no runtime dependency at all, and the code you inherit that already imports compose, curry or groupby will keep working. Two things deserve a look before you build on it.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 46 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • pytoolz/toolz5,160 ★ · +3
Star history
Repository2026-09-232026-11-22
pytoolz/toolz5.2k5.2k

3 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The version number is assembled from git tags at build time

toolz keeps no version file. pyproject.toml puts version in the dynamic list and hands the job to setuptools-git-versioning, which is enabled with a dev_template of {tag}+{ccount}.g{sha} and a dirty_template that appends .dirty to the same shape. The version you install is therefore computed from the tag, the commit count and the short hash at the moment the build runs.

Three things follow from that. A working copy with uncommitted edits builds to a version ending in .dirty, which is how you notice you are not running a tagged artifact. A checkout with no reachable tag gets a count-and-hash string instead of a release name. And a build from an unpacked sdist has no git history to read, while the two templates are the only description of how a release number is formed and neither offers a fallback for that case.

None of this reaches an ordinary install, because the install line is one command and the version on PyPI was fixed by whoever built the wheel:

bash
pip install toolz

The same build table asks for setuptools >=77 and setuptools-git-versioning >=2.0, so building from source needs a recent setuptools even though the runtime dependency story is meant to be empty.

The README says alive but inactive, the classifier says Production/Stable

The README keeps a Project Status section that states in its own heading that the project is alive but inactive. It goes on to say the original maintainers have mostly moved on to other endeavors, that critical bug fixes, Python version bumps and security issues will still be taken, that beyond that contributions will not get much review, and that toolz is viewed as mostly complete. It closes by pointing enthusiasts at other projects, with an emoji doing the shouting.

The packaging metadata tells a flatter story. The classifier reads Development Status :: 5 - Production/Stable, and the maintainers table holds exactly one person, Erik Welch, with an address. The authors entry is the generic PyToolz Contributors, and AUTHORS.md sits at the root, so those two files are the only other attribution the tree carries. The project therefore says it will spend little time reviewing contributions and advertises production stability at the same time, which are not the same claim.

Commits do keep arriving: the branch was last pushed on 2026-10-07, which fits the stated policy of version bumps and critical fixes. So when someone asks whether the library is still looked after, the README's status text is the thing worth quoting, not the commit log.

A pre-release was superseded fifty minutes after it was published

Three releases are visible, and one of them never became a final. 1.2.0 shipped on 2026-10-07. Before that, on the morning of 2025-10-17, 1.0.1a0 went out as a pre-release at 03:11 UTC and 1.1.0 followed at 04:02, less than an hour later. No 1.0.1 release sits between them.

Set that beside the git-derived version scheme and the ordering has a practical effect. The a0 build exists in the wild as an installable artifact whose version string maps to no final patch, and pip requires an explicit flag to have picked it up in the first place. Anyone pinning 1.0.1a0 in a lockfile has pinned a build that was overtaken about fifty minutes after upload.

The tree also keeps its own release-notes file while the metadata points somewhere else. The project urls table declares the changelog as https://github.com/pytoolz/toolz/releases, so the GitHub releases page is the advertised changelog, and the release-notes entry at the root is not referenced from pyproject.toml at all. Two changelogs exist and only one of them is wired into the package.

The headline example imports a namespace the module list never names

The README's example builds a wordcount function out of three pieces, and two of them are not the ones a reader expects. It imports compose and frequencies from toolz, then imports map from toolz.curried, which shadows the builtin for the rest of the session:

python
>>> from toolz import compose, frequencies
>>> from toolz.curried import map
>>> wordcount = compose(frequencies, map(stem), str.split)

>>> sentence = "This cat jumped over this other cat!"
>>> wordcount(sentence)
{'this': 2, 'cat': 2, 'jumped': 1, 'over': 1, 'other': 1}

The third piece is not in the library at all. stem is defined in the example, and its definition hardcodes the punctuation it strips: comma, full stop, exclamation mark, colon, semicolon, hyphen and both quote characters. That definition is what turns the leading capital into a lowercase key and keeps the exclamation mark off the final cat, so the one word the example exists to demonstrate, a repeated word, depends on a hand-written string method.

The structure section above it names three files. itertoolz.py holds groupby, unique and interpose, functoolz.py holds memoize, curry and compose, dicttoolz.py holds assoc, update-in and merge. toolz.curried appears nowhere in that list, although the example cannot run without it.

Coverage measures the toolz tree, so the tlz package ships unmeasured

The distribution ships six packages: toolz, toolz.curried, toolz.sandbox, toolz.sandbox.tests, toolz.tests and tlz. Two of those exist to be tested rather than used, since toolz.sandbox.tests and toolz.tests are test packages that go out in the wheel, and tlz is a separate top-level package.

Coverage is configured with source set to toolz and an omit list covering toolz/tests/test* and toolz/*/tests/test*. Read those two settings together and the consequence is plain: reports cover the toolz tree and nothing else. tlz is installed on every user's machine and never appears in a coverage figure, and a test module that sits outside the toolz/*/tests shape is measured only if it lives under toolz itself. The sandbox subpackage has a tests package of its own, which is also a separate entry in the packaging table.

The README's structure section describes three modules. toolz.sandbox and tlz are absent from the README, and toolz.curried appears only in the example's import line.

Three descriptions of the license sit side by side

pyproject.toml declares the license as BSD-3-Clause and points license-files at LICENSE.txt. The README calls it New BSD and links the same LICENSE.txt on the master branch. The repository license metadata field is left unasserted, which means anything reading only that field gets nothing at all.

Nothing in the tree settles which wording governs, and it does not have to: BSD-3-Clause in the packaging table is the identifier a build tool consumes, New BSD is prose for the same family, and LICENSE.txt is the single file both point at. The real gap is the empty metadata field, so a scanner or indexer that trusts it reports the project as unlicensed rather than as BSD, which is a question about metadata plumbing rather than about the terms.

The license also travels through packaging configuration rather than sitting in a module header, so it is the packaging table that carries the file name. LICENSE.txt is the only license artifact in the tree, and the README points readers at the master branch copy of it rather than at the installed one.

The standard library cross references point at the Python 2 pages

The See Also section names its closest relatives, and two of the five links are version-pinned to a Python that the package no longer supports. The itertools link is docs.python.org/2/library/itertools.html and the functools link is docs.python.org/2/library/functools.html, in a project whose packaging table requires Python 3.9 or newer.

The dependency claim in the same README is stated as flatly as it gets: toolz supports Python 3.9+ with a common codebase, it is pure Python, and it requires no dependencies beyond the standard library. The packaging table carries no dependencies key at all, which is the machine-readable form of the same claim, and the only dependency group declared is test, holding coverage, pycodestyle and pytest. What that paragraph does not address is that the classifiers list both CPython and PyPy while the prose never says which interpreters the common codebase was exercised on.

The remaining See Also entries are the JavaScript, Ruby and Clojure counterparts, with Clojure singled out as a functional language whose standard library has several counterparts in toolz.

bench/, tox.ini and three example scripts are outside the README entirely

The root of the repository lists .github/, .gitignore, .pre-commit-config.yaml, .readthedocs.yaml, AUTHORS.md, LICENSE.txt, MANIFEST.in, README.rst, bench/, doc/, examples/, pyproject.toml, release-notes, tlz/, toolz/ and tox.ini. The README mentions only a few of those entries. Everything else is discoverable only by browsing the tree.

bench/ is the interesting omission for anyone judging performance claims, because a benchmark directory sitting in the repository implies results that can be reproduced, while the README says nothing about what is measured or how. doc/ and .readthedocs.yaml cover the hosted documentation, which the README does link, but the repository also carries tox.ini as a second place test environments are configured alongside the single dependency group in pyproject.toml.

examples/ holds three scripts, fib.py, graph.py and wordcount.py. Only the wordcount one is reproduced in the README, as a session transcript; the other two are named in the tree and nowhere else, so anyone looking for a worked graph or recursion example has to open the files to find out what they do.

Editorial conclusion

toolz is the right choice when you want list processing and higher-order helpers with no runtime dependency at all, and the code you inherit that already imports compose, curry or groupby will keep working. Two things deserve a look before you build on it. The library is finished on purpose: the README says the project is alive but inactive, views toolz as mostly complete, and says that beyond critical fixes, Python version bumps and security issues it does not plan to spend much time reviewing contributions, so plan to own whatever you add. And pin an ordinary release version rather than a pre-release, because the 1.0.1a0 build published on 2025-10-17 was superseded by 1.1.0 less than an hour later and no 1.0.1 final appears in the release list. Read the license position yourself as well: the packaging table says BSD-3-Clause, the README says New BSD, both point at LICENSE.txt, and the repository license field is left unasserted.

Frequently asked questions

Is toolz still maintained?

The README states in its own Project Status heading that the project is alive but inactive, that the original maintainers have mostly moved on, and that critical bug fixes, Python version bumps and security issues are still taken while other contributions get little review. The branch was last pushed on 2026-10-07 and the newest release is 1.2.0 from 2026-10-07.

What license does toolz use?

The packaging table declares BSD-3-Clause with LICENSE.txt as its license file, and the README calls the same thing New BSD while linking to that LICENSE.txt. The repository's own license metadata field is left unasserted, so all three descriptions sit side by side without one overriding the others.

Does toolz need any runtime dependencies?

The README states that toolz is pure Python and requires nothing beyond the standard library, and the packaging table declares no dependencies key. Building from source does pull setuptools >=77 and setuptools-git-versioning >=2.0 through the build system, and the only declared dependency group is test, holding coverage, pycodestyle and pytest.

What is the difference between toolz and cytoolz?

The README points at a separate cytoolz project under the same organisation, which reimplements toolz in Cython and calls it a drop-in replacement for the pure Python implementation. It also names Ruby's Enumerable as a counterpart, and Clojure as a functional language whose standard library has several counterparts in toolz.

Official sources

  1. Issues
  2. Project website
  3. pytoolz/toolz on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/pytoolz-toolz.svg)](https://hysenlabs.com/projects/pytoolz-toolz)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/pytoolz-toolz.svg)](https://hysenlabs.com/projects/pytoolz-toolz)

Was this useful?