A look at pytoolz/toolz: 5.2k stars on GitHub, written primarily in Python. A functional standard library for Python.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
These functions come from the legacy of functional languages for list
processing. They interoperate well to accomplish common complex tasks.
Read our API Documentation <https://toolz.readthedocs.io/en/latest/api.html>__ for
more details.
Example
This builds a standard wordcount function from pieces within toolz:
.. code:: python
>>> def stem(word):
... """ Stem word to primitive form """
... return word.lower().rstrip(",.!:;'-\"").lstrip("'\"")
>>> 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}
Dependencies
toolz supports Python 3.9+ with a common codebase.
It is pure Python and requires no dependencies beyond the standard
library.
It is, in short, a lightweight dependency.
CyToolz
The toolz project has been reimplemented in Cython <http://cython.org>.
The cytoolz project is a drop-in replacement for the Pure Python
implementation.
See CyToolz GitHub Page <https://github.com/pytoolz/cytoolz/> for more
details.
See Also
Underscore.js <https://underscorejs.org/>__: A similar library for
JavaScript
Enumerable <https://ruby-doc.org/core-2.0.0/Enumerable.html>__: A
similar library for Ruby
Clojure <https://clojure.org/>__: A functional language whose
standard library has several counterparts in toolz
itertools <https://docs.python.org/2/library/itertools.html>__: The
Python standard library for iterator tools
functools <https://docs.python.org/2/library/functools.html>__: The
Python standard library for function tools
Project Status
This project is alive but inactive.
The original maintainers have mostly moved on to other endeavors. We're still
around for critical bug fixes, Python version bumps, and security issues and
will commit to keeping the project alive (it's highly depended upon).
However, beyond that we don't plan to spend much time reviewing contributions.
We view Toolz as mostly complete.
We encourage enthusiasts to innovate in new and wonderful places 🚀
pytoolz/toolz has 5.2k GitHub stars — refresh the page for the live number, or check github.com/pytoolz/toolz. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is pytoolz/toolz open source?
TopGit's metadata for pytoolz/toolz does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is pytoolz/toolz?
pytoolz/toolz (pytoolz/toolz) is a Python project on GitHub. From the project's own README: A functional standard library for Python.
Where can I see pytoolz/toolz in action?
The project maintains a homepage at http://toolz.readthedocs.org/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about pytoolz/toolz?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/pytoolz/toolz is the definitive source.
Read full README in the tab above.
Curious whether toolz is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about toolz.