pytoolz

cytoolz: Speed Up Python Functional Utilities

cytoolz provides Cython implementations of toolz utilities for working with iterables, functions, and dictionaries. Use it when toolz-compatible APIs and iterator-friendly processing need more speed, or when Cython projects need its C API.

View on GitHub Compare
Stars
1.1k
Forks
76
Stars, last 30 days
+0

Our take

Health score

38/100

How it is scored
Activity
45
Community
43
Issues
21
Pull requests
43

+0 stars in the last 30 days

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

1,115

Forks

78

Change since Nov 16, 2026: 0 stars·+1 forks

Overview

cytoolz is a Cython implementation of the Python toolz library. It offers functional utilities for iterables, functions, and dictionaries, with an API designed to match toolz while reducing the overhead of pure Python implementations.

It is suited to Python developers processing large or streaming data, and to Cython projects that want access to the library's C API. Its iterator-oriented utilities can help keep memory use low, while the compatible API can make it practical to substitute cytoolz where faster execution matters.

Key Features

  • Implements the toolz API in Cython.
  • Provides utilities for iterables, functions, and dictionaries.
  • Supports iterator-based processing, including use with large or potentially infinite data sets.
  • Offers a C API for projects developed in Cython.
  • Uses a common codebase for Python 3.9 and newer.
  • Supports experimental builds for Python 3.13 free-threading.

Use Cases

  • Python developers speeding up utility-heavy data processing that already uses toolz-style functions.
  • Data analysis workflows handling large collections or streams where iterator-based processing is useful.
  • Cython developers integrating functional utilities through a C API.
  • Projects seeking toolz-compatible utilities while retaining the option to use the pure Python toolz package.

Getting Started

Install from PyPI:

pip install cytoolz

See the README and Toolz documentation for API details.

Alternatives

  • Toolz: Toolz provides the compatible utilities in pure Python, while cytoolz supplies Cython implementations for faster execution and a C API.
ProjectLanguageLicenseStarsStatus
cytoolzPythonOther1.1kNot checked yet
toolzPythonOther5.2kActive

Considerations

  • Requires CPython and a C compiler; the project is developed in Cython.
  • The README describes speedups as typical rather than guaranteed, so performance should be checked against the needs and workload of your project.
  • Free-threading support for Python 3.13 is experimental. The project has not yet been developed or tested for thread safety, so use in free-threaded environments carries risk.
  • The supplied license field is NOASSERTION; check the repository license file before relying on it for licensing decisions.

Found this useful?

Share it with someone who would like cytoolz.

Comparisons